What is a repeat in the job queue?

I originally posted this question on the Zend forums, but thought it would be wise to post here.

What should happen, exactly, for the task to retry? I tried timeouts, 50x response codes and set the status to “FAILED”.

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

$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 tried to cause the job to be repeated by deleting user.php, returning 500 inside consumer.php, and given that consumer.php takes longer than 120 seconds for zend_jobqueue.http_job_timeout in jqd.ini, None of them cause a repetition .

So, I ask, what will actually cause a repeat?

Please, help.

+3
source share
1

Zend - , ZendCon 2010 - Job Queue.

5.0.4 Zend Job Queue, , HTTP.

.

.

0

Source: https://habr.com/ru/post/1770927/


All Articles