Fresque
Fresque copied to clipboard
resume command doesn't work
Hi, after starting some workers with "fresque -start" the system correctly handles "fresque - pause". Within the log file I can read [notice] [15:51:55 2014-10-22] USR2 received; pausing job processing
but trying "fresque -resume" nothing happens. Workers are not working and within the log file the only new lines are
[info] [15:53:15 2014-10-22] Sleeping for 5
and the workers don't consume jobs. Trying also the stop command, it doesn't work.
Here you can find some details about my environment
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS" NAME="Ubuntu" VERSION="14.04.1 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.1 LTS" VERSION_ID="14.04"
PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep 4 2014 06:56:34) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
Regards,
Can you try a stats
command after pausing, then after resuming ?
Hi, here you can find all I collected. To stop the worker shown in the last "stats" I had to remove it from Redis After the pause it happened as described. The worker is still cycling (looking at the log), but it doesn't get the CONT signal.
Loading predefined workers
Loading 1 workers Loading 1 workers for richiesteCURL Starting worker ... Done
Resque statistics
Jobs Stats Processed Jobs : 0 Failed Jobs : 0
Queues Stats Queues count : 0
Workers Stats Active Workers : 1 Worker : myserver:12635:richiesteCURL - Started on : Thu Oct 23 10:31:47 CEST 2014 - Uptime : less than a minute - Processed Jobs : 0 - Failed Jobs : 0
Pausing workers
pausing 12635 ... Done
Resque statistics
Jobs Stats Processed Jobs : 0 Failed Jobs : 0
Queues Stats Queues count : 0
Workers Stats Active Workers : 1 Worker : myserver:12635:richiesteCURL (Paused) - Started on : Thu Oct 23 10:31:47 CEST 2014 - Uptime : less than a minute - Processed Jobs : 0 - Failed Jobs : 0
Resuming workers
resuming 12635 ... Done
Resque statistics
Jobs Stats Processed Jobs : 0 Failed Jobs : 0
Queues Stats Queues count : 0
Workers Stats Active Workers : 1 Worker : myserver:12635:richiesteCURL - Started on : Thu Oct 23 10:31:47 CEST 2014 - Uptime : 1 minute and 53 seconds - Processed Jobs : 0 - Failed Jobs : 0
In the first post, you said that after resuming, these lines started to appear in the log again:
[info] [15:53:15 2014-10-22] Sleeping for 5
So I assume that the workers are resumed, but they are not processing any jobs ? And the stop
command does not have effects, and no warning in the logs ?
In you second post, you said that the worker are working again, but does not get the CONT signal ? Are you expecting any log about the CONT signal before resuming ?
Do you have the pcntl extension installed ?
Can you try pausing the workers with /bin/kill -USR2 YOUR-WORKER-PID
, then check in the logs that it's really paused (no more logs entry).
Then try resuming it with /bin/kill -CONT YOUR-WORKER-PID
, and check the logs to confirm it's really resumed. Is the worker still not picking any jobs ?
I saw that in your stats, the Queues count is 0. Is your worker polling a queue with any jobs ?
Hi, the status is the following.
I start a worker on a queue ("richiesteCURL") and it works: it means at every cycle it gets jobs if available. At every cycle the worker class logs the cycle itself. e.g.
[info] [07:44:48 2014-10-25] Sleeping for 3 [info] [07:44:51 2014-10-25] Checking richiesteCURL for jobs
When I ask to pause the workers, the signal is received because the worker logs the USR2 signal has been received. Now the worker is paused and it logs only.
[info] [07:44:48 2014-10-25] Sleeping for 3
Trying to signal to continue, nothing new is logged, the workers continues only with
[info] [xxxxxxxx] Sleeping for 3 [info] [xxxxxxxx] Sleeping for 3 ......
Even if I enqueue new jobs to "richiesteCURL", nothing happens.
Regards,
On 26 Oct 2014, at 07:14, Wan Qi Chen [email protected] wrote:
I saw that in your stats, the Queues count is 0. Is your worker polling a queue with any jobs ?
— Reply to this email directly or view it on GitHub.