Skip to content

Custom script #7496

Answered by candlerb
andershagman asked this question in Q&A
Oct 8, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

I have copied the example from documentation and that also stops at pending...

My first guess is that it could be something to do with Redis. The release notes for Netbox 2.9 say:

"When running a report or custom script, its execution is now queued for background processing and the user receives an immediate response indicating its status. This prevents long-running scripts from resulting in a timeout error. Once the execution has completed, the page will automatically refresh to display its results."

Check that netbox-rq is running, and whether anything is being logged there:

systemctl status netbox-rq
journalctl -eu netbox-rq

Also compare your configuration.py with configuration.exam…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@andershagman
Comment options

@candlerb
Comment options

@andershagman
Comment options

@candlerb
Comment options

@andershagman
Comment options

Answer selected by andershagman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants