Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RQworker reload fails randomly #160

Closed
p-rintz opened this issue Jul 24, 2023 · 2 comments
Closed

RQworker reload fails randomly #160

p-rintz opened this issue Jul 24, 2023 · 2 comments

Comments

@p-rintz
Copy link
Contributor

p-rintz commented Jul 24, 2023

Hi there,

I have an issue where the reload handler of the rqworker will fail randomly.
It then immediately restarts again and it works, but this behaviour leads to issues in the playbook or Github Actions sometimes failing as they think the service failed completely.

In the logs it looks like this:

Jul 24 06:29:47 netbox.dev systemd[1]: Reloading NetBox RQ-Worker...
Jul 24 06:29:47 netbox.dev kill[29022]: Usage:
Jul 24 06:29:47 netbox.dev kill[29022]:  kill [options] <pid> [...]
Jul 24 06:29:47 netbox.dev kill[29022]: Options:
Jul 24 06:29:47 netbox.dev kill[29022]:  <pid> [...]            send signal to every <pid> listed
Jul 24 06:29:47 netbox.dev kill[29022]:  -<signal>, -s, --signal <signal>
Jul 24 06:29:47 netbox.dev kill[29022]:                         specify the <signal> to be sent
Jul 24 06:29:47 netbox.dev kill[29022]:  -q, --queue <value>    integer value to be sent with the signal
Jul 24 06:29:47 netbox.dev kill[29022]:  -l, --list=[<signal>]  list all signal names, or convert one to a name
Jul 24 06:29:47 netbox.dev kill[29022]:  -L, --table            list all signal names in a nice table
Jul 24 06:29:47 netbox.dev kill[29022]:  -h, --help     display this help and exit
Jul 24 06:29:47 netbox.dev kill[29022]:  -V, --version  output version information and exit
Jul 24 06:29:47 netbox.dev kill[29022]: For more details see kill(1).
Jul 24 06:29:47 netbox.dev systemd[1]: netbox-rqworker.service: Control process exited, code=exited, status=1/FAILURE
Jul 24 06:29:47 netbox.dev systemd[1]: netbox-rqworker.service: Failed with result 'exit-code'.
Jul 24 06:29:47 netbox.dev systemd[1]: Reload failed for NetBox RQ-Worker.

Is there a specific reason why a reload is done instead of a normal restart?

Switching to the (by now) default netbox-rq.service file might be a solution.

I implemented #129 in #161 which should fix this issue as well.

@lae
Copy link
Owner

lae commented Jul 24, 2023

Is there a specific reason why a reload is done instead of a normal restart?

Conventionally, reloads are meant to refresh running services without interruption, which I assume is the intention here. But I guess it might not be applicable to this service since it's not user-facing, so a normal restart should be fine?

@lae
Copy link
Owner

lae commented Jul 25, 2023

Reloads replaced with restarts in #161

@lae lae closed this as completed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants