views:

45

answers:

0

I originally posted this question over at the Zend Forums but figured it would also be wise to post here.

What has to happen, exactly, for a job to retry? I've tried timeouts, 50x response codes, and setting the status to "FAILED".

I have a simple script that creates a job...

$job_url = 'http://localhost/consumer.php?time=' . microtime(true);
$job_queue = new ZendJobQueue();

$job_options = array(
   'name' => 'Test Job'
);

$job_id = $job_queue->createHttpJob(
   $job_url,
   array(),
   $job_options
);

I've tried to trigger a retry of the job by removing consumer.php, returning a 500 from within consumer.php, and having consumer.php take longer than the 120 seconds set for zend_jobqueue.http_job_timeout in the jqd.ini. None of these appear to trigger a retry.

So, I ask, what actually will trigger a retry?

Please help.