Skip to content

Commit

Permalink
Merge pull request #236 from galaxyproject/235-remap-job-rerun
Browse files Browse the repository at this point in the history
Job rerun --remap
  • Loading branch information
ksuderman authored Aug 14, 2023
2 parents eb7cdab + 70d6ef2 commit 0cea84c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion abm/lib/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def summarize(context: Context, args: list):
make_row = make_model_row
header_row = "job_id,tool_id,tool_version,state,memory.max_usage_in_bytes,cpuacct.usage,process_count,galaxy_slots,runtime_seconds,ref_data_size,input_data_size_1,input_data_size_2"
else:
print(f"Input dir {arg}")
# print(f"Input dir {arg}")
input_dirs.append(arg)

if len(input_dirs) == 0:
Expand Down
9 changes: 8 additions & 1 deletion abm/lib/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,16 @@ def problems(context: Context, args: list):


def rerun(context: Context, args: list):
remap = False
if '-r' in args:
remap = True
args.remove('-r')
if '--remap' in args:
remap = True
args.remove('--remap')
if len(args) == 0:
print("ERROR: no job ID provided")
return
gi = connect(context)
result = gi.jobs.rerun_job(args[0], remap=True)
result = gi.jobs.rerun_job(args[0], remap=remap)
print_json(result)

0 comments on commit 0cea84c

Please sign in to comment.