Skip to content

Commit

Permalink
NAS-110671 / 12.0 / prevent unlimited running cron jobs (truenas#6971)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo authored Jun 7, 2021
1 parent d772ada commit 405cf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async def do_delete(self, id):
Int('id'),
Bool('skip_disabled', default=False),
)
@job(lock=lambda args: f'cron_job_run_{args[0]}', logs=True)
@job(lock=lambda args: f'cron_job_run_{args[0]}', logs=True, lock_queue_size=1)
def run(self, job, id, skip_disabled):
"""
Job to run cronjob task of `id`.
Expand Down

0 comments on commit 405cf94

Please sign in to comment.