Custom scripts with job_timeout
more than RQ_DEFAULT_TIMEOUT
failed when rescheduled
#17759
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
Triage priority
I volunteer to perform this work (if approved)
NetBox Version
v4.1.3
Python Version
3.12
Steps to Reproduce
job_timeout
more thanRQ_DEFAULT_TIMEOUT
, for example, the default timeout is 300 secs, settingjob_timeout
to 500 and inside script only sleep for 400 secsExpected Behavior
Script runs successfully and all scheduled after scripts are successful too
Observed Behavior
First running will be successful, but after that all scheduled jobs will fail with
JobTimeoutException
This happens because
ScriptView
passesjob_timeout
intoScriptJob
,but rescheduling mechanism does not pass this argument into
enqueue
methodThe text was updated successfully, but these errors were encountered: