Queue Operation

nate
@nate
11 years ago
917 posts
$_queue = array(
                        'quota_id'  => $_user['profile_quota_id'],
                        'start'     => $_post['distriblicense_sample_time_start'], 
                        'end'       => $_post['distriblicense_sample_time_end'], 
                        'total'     => $_post['distriblicense_sample_time_total'],
                        'media'     => $_media,
                        'license'   => $_rt
                    );
                    jrCore_queue_create('xtAjax', 'audio_sample', $_queue);



this is in the include file

jrCore_register_queue_worker('xtAjax', 'audio_sample', 'xtAjax_create_audio_sample', 0, 1);

The operation never triggers. Is there something missing?
updated by @nate: 01/07/15 01:27:04PM
brian
@brian
11 years ago
10,149 posts
Looks fine to me - I'm not aware of any queue issues. Make sure your queues are not paused, and everything is active. I believe you had this exact same issue a month or so ago and you found the root cause on your own - I would check that the same issue is not happening here.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
nate
@nate
11 years ago
917 posts
Yeah I know. It was a different operation and that one still works. This one worked 3 weeks ago, then the client had some unrelated work done and suddenly it stopped working.

I just wanted to be sure the code was correct.
brian
@brian
11 years ago
10,149 posts
Natedogg265:
Yeah I know. It was a different operation and that one still works. This one worked 3 weeks ago, then the client had some unrelated work done and suddenly it stopped working.

I just wanted to be sure the code was correct.

Yeah it looks good. The important part is that in your registered queue worker call you make sure the module and queue name are exactly as you have used when creating the new queue entry. Of course the registered queue function needs to exist as well.

It's actually a pretty simple setup and there's not a lot of places for it to go wrong.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
nate
@nate
11 years ago
917 posts
Thanks.
brian
@brian
11 years ago
10,149 posts
Natedogg265:
Thanks.

No problem!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags