You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Below is an extract from my fresque.ini file. Based on that I believe that adding a job to the queue job-onboard-mailer will cause it to be done at a 360 second interval, the next time that queue is polled. But that doesn't seem to be the case according to my log file, an extract of which is pasted below. It seems to be doing the job instantly. Could you please advise if my settings are wrong or if I have misunderstood something?
Also, is there any documentation for the scheduler feature?
Thanks.
[Default]
; Default name of the queue the worker will be working one
; A worker can work on more than one queue, just separate
; the name with a commas, e.g "defaultone,defaultwo"
queue = job-worker
; Polling frequency
; Number of seconds to sleep between each polling
interval = 5
; Number of workers to fork
; e.g putting 2 will start to workers with exactly
; the same settings
workers = 1
Can you try again without all the other queues, to reduce noise in the log ?
When there is no jobs in the queue, do you see the worker polling in the log every 360 seconds ? Are you sure that no other workers are polling that queue ?
I believe it is my misunderstanding. Looking into the php-resque-ex code I see that the interval only applies if there is no job in the queue. My code adds a job to that queue but delays execution (sending of an e-mail) till a specific time has elapsed. If that time hasn't elapsed, it will re-queue the job. So there will always be a job in that queue.
I need to re-work my code to only add a job to the queue when it is ready to be processed. So I think we can close this issue, though I would still like to know about the scheduler functionality, in case that is of help to me here.
Below is an extract from my fresque.ini file. Based on that I believe that adding a job to the queue job-onboard-mailer will cause it to be done at a 360 second interval, the next time that queue is polled. But that doesn't seem to be the case according to my log file, an extract of which is pasted below. It seems to be doing the job instantly. Could you please advise if my settings are wrong or if I have misunderstood something?
Also, is there any documentation for the scheduler feature?
Thanks.
[Default]
; Default name of the queue the worker will be working one
; A worker can work on more than one queue, just separate
; the name with a commas, e.g "defaultone,defaultwo"
queue = job-worker
; Polling frequency
; Number of seconds to sleep between each polling
interval = 5
; Number of workers to fork
; e.g putting 2 will start to workers with exactly
; the same settings
workers = 1
[Queues]
job-dispatcher[workers] = 1
job-mailer[workers] = 1
job-worker[workers] = 6
job-deleter[workers] = 1
job-welcome-mailer[workers] = 1
job-onboard-mailer[workers] = 1
job-create-mp3[workers] = 1
job-onboard-mailer[interval] = 360
job-welcome-mailer[interval] = 180
[2015-08-11T11:56:30+01:00] Processing ID:bc7285fbe7053d1048f94dd5018584a9 in job-onboard-mailer
[2015-08-11T11:56:30+01:00] done ID:bc7285fbe7053d1048f94dd5018584a9
[2015-08-11T11:56:30+01:00] got {"queue":"job-onboard-mailer","id":"ddbefb12b4bfa17acc505e4a64abb42d","class":"Byta\JobBundle\Job\JobSendOnboardEmail","args":[{"messageID":33,"created":"2015-08-11 11:53:45","type":"meta"}]}
[2015-08-11T11:56:30+01:00] Processing ID:ddbefb12b4bfa17acc505e4a64abb42d in job-onboard-mailer
[2015-08-11T11:56:30+01:00] done ID:ddbefb12b4bfa17acc505e4a64abb42d
[2015-08-11T11:56:30+01:00] got {"queue":"job-onboard-mailer","id":"c87943072007a0bf3d9a925cc225b1f1","class":"Byta\JobBundle\Job\JobSendOnboardEmail","args":[{"messageID":33,"created":"2015-08-11 11:53:45","type":"meta"}]}
[2015-08-11T11:56:30+01:00] Processing ID:c87943072007a0bf3d9a925cc225b1f1 in job-onboard-mailer
[2015-08-11T11:56:30+01:00] done ID:c87943072007a0bf3d9a925cc225b1f1
[2015-08-11T11:56:30+01:00] got {"queue":"job-onboard-mailer","id":"e265c5ee44fa385fe945f4276cce2c15","class":"Byta\JobBundle\Job\JobSendOnboardEmail","args":[{"messageID":33,"created":"2015-08-11 11:53:45","type":"meta"}]}
The text was updated successfully, but these errors were encountered: