Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resubmit all jobs in daily twice before giving up in desi_proc_night #2416

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bug in any_jobs_need_resubmission
akremin committed Nov 12, 2024
commit 5b6015a010e663cd882a59ee877fc16ecfca2707
4 changes: 3 additions & 1 deletion py/desispec/workflow/queue.py
Original file line number Diff line number Diff line change
@@ -583,7 +583,9 @@ def any_jobs_need_resubmission(statuses, resub_states=None):
"""
if resub_states is None:
resub_states = get_resubmission_states(no_resub_failed=False)
return np.any(np.isin(statuses, resub_states))
## This works with strings or bytes, unlike np.isin
return np.any([status in resub_states for status in statuses])


def get_jobs_in_queue(user=None, include_scron=False, dry_run_level=0):
"""