Scheduled Script are not persistent #17146
Unanswered
dga-nagra
asked this question in
Help Wanted!
Replies: 1 comment 1 reply
-
This is incorrect. The only place NetBox relies on a cron job is for the housekeeping task, which has nothing to do with scheduled jobs.
It does rely on Redis. Job data is stored in the database using the Job model and pending jobs are tracked in Redis queues. Queued tasks can be viewed under Admin > Background Tasks. These all persist across reboots or rebuilds of individual compute instances provided the Redis & PostgreSQL databases are not disrupted. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Deployment Type
NetBox Cloud
NetBox Version
v4.0.8
Python Version
3.11
Steps to Reproduce
=> The scheduled script are not scheduled anymore
NOTE: This is a common way of working with containers /working with hashicorp packer to create an deploy a new image.
Expected Behavior
The scripts' scheduling should be persistent, i.e. still work as long as the database & redis are kept.
Observed Behavior
After re-creating the instance, the script are not scheduled anymore.
Beta Was this translation helpful? Give feedback.
All reactions