Skip to content

Commit

Permalink
Fix linting (ruff)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Feb 11, 2025
1 parent 273a2e9 commit 2e3c409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ def enqueue(self):

def _pause_job_if_over_quota(self, job):
if self.app.quota_agent.is_over_quota(self.app, job, self.job_destination):
log.info("(%d) User (%s) is over quota: job paused" % (job.id, job.user_id))
log.info("(%d) User (%s) is over quota: job paused", job.id, job.user_id)
message = "Execution of this dataset's job is paused because you were over your disk quota at the time it was ready to run"
self.pause(job, message)

Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def __handle_waiting_jobs(self):
elif job_state == JOB_ADMIN_DELETED:
log.info("(%d) Job deleted by admin while still queued", job.id)
elif job_state == JOB_USER_OVER_TOTAL_WALLTIME:
log.info("(%d) User (%s) is over total walltime limit: job paused" % (job.id, job.user_id))
log.info("(%d) User (%s) is over total walltime limit: job paused", job.id, job.user_id)
job.set_state(model.Job.states.PAUSED)
for dataset_assoc in job.output_datasets + job.output_library_datasets:
dataset_assoc.dataset.dataset.state = model.Dataset.states.PAUSED
Expand Down

0 comments on commit 2e3c409

Please sign in to comment.