Skip to content
Merged
Changes from all commits
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
2 changes: 2 additions & 0 deletions lib/galaxy/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,8 @@ def enqueue(self):
# Now that we have the object store id, check if we are over the limit
self._pause_job_if_over_quota(job)
self.sa_session.commit()
if job.state == model.Job.states.PAUSED:
return False
return True

def _pause_job_if_over_quota(self, job):
Expand Down
Loading