Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Workers disappearing #52

Closed
rlweb opened this issue May 31, 2015 · 4 comments
Closed

Workers disappearing #52

rlweb opened this issue May 31, 2015 · 4 comments

Comments

@rlweb
Copy link

rlweb commented May 31, 2015

Probably not the best place to ask this but is there any way to get more debugging information my workers seem to stop every couple of days with nothing in the logs? Can't find much on the php-resque github either about this?

@wa0x6e
Copy link
Owner

wa0x6e commented May 31, 2015

Fresque does not log anything, logs are handled directly by php-resque itself.

What kind of 'stop' is it ?

1 - Workers died, but is still registered in fresque
2 - Workers died, and disappear from fresque too
3 - Workers is known as died from fresque, but is still alive

You can check if your workers process are still alive with ps aux | grep resque. There should be one process for each worker.

You can also check the redis log redis-cli monitor for workers activities.

@rlweb
Copy link
Author

rlweb commented Jun 1, 2015

It is three, since there is around 20 processes from running the ps command. I've kill'ed them all and restarted them via 'vendor/bin/fresque load'. Hopefully this might keep them going?

@wa0x6e
Copy link
Owner

wa0x6e commented Jun 1, 2015

Workers should never disappear from Fresque, unless you run the fresque stop command yourself.

You mention that the workers disappear every couple of days, and they're disappearing from Fresque only, workers are still running. Only explication is someone tried to run fresque stop, or something weird is clearing the fresque data from Redis.

You found 20 processes from the ps command. How many workers are still alive in Fresque ?

@rlweb
Copy link
Author

rlweb commented Jul 5, 2015

Sorry for not replying back then! But yes the redis database was being flushed occasionally causing the issues. This can be closed now.

@rlweb rlweb closed this as completed Jul 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants