Skip to content

Run babs submit when all running jobs have CG status #331

@tien-tong

Description

@tien-tong

Summary

babs submit currently will not run if there are any jobs already running for the same project.

Additional details

Example error

Traceback (most recent call last):
  File "/cbica/projects/pennlinc_hcpd/miniforge3/bin/babs", line 8, in <module>
    sys.exit(_main())
             ^^^^^^^
  File "/gpfs/fs001/cbica/projects/pennlinc_hcpd/software/babs/babs/cli.py", line 737, in _main
    options.func(**args)
  File "/gpfs/fs001/cbica/projects/pennlinc_hcpd/software/babs/babs/cli.py", line 409, in babs_submit_main
    babs_proj.babs_submit(count=count, submit_df=df_job_specified)
  File "/gpfs/fs001/cbica/projects/pennlinc_hcpd/software/babs/babs/interaction.py", line 36, in babs_submit
    raise Exception(
Exception: There are still jobs running. Please wait for them to finish or cancel them. Current running jobs:
     job_id  task_id state time_used  time_limit  nodes  cpus partition name       sub_id  ses_id
0  12166704      121    CG  20:06:22  1-00:00:00      1     2       all  fmr  sub-0183438  ses-V2

Next steps

Allow babs submit when all currently running jobs for the project have CG status.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions