chrisboulton / php-resque

PHP port of resque (Workers and Queueing)
MIT License
3.43k stars 759 forks source link

last jobid Resque::enqueue return not currect #216

Open yekz opened 10 years ago

yekz commented 10 years ago

I created 5 jobs and put each into a worker.

foreach ($queues as $key => $value) {
    $args = array(
        'time'     => time(),
        // ...
    );
    $jobIds[] = Resque::enqueue($value, "EmailQueue_Job", $args, true);
}

foreach ($jobIds as $key => $value) {
    file_put_contents("./jobids.txt", $value . PHP_EOL, FILE_APPEND);
}

log jobIds to jobids.txt

2ad919d64651de5641157343acab57f8
596dc6a87d0792e365856aa10505e397
39c039aaad9ed1e063ef091afa5e6327
6c0726ff1b477a7de70173f8f238919a
db36a53a71a66739a70d48b2794c858d

when i try to check status of them, last one (here is db36a53a71a66739a70d48b2794c858d) always return 1

check log

[notice] [12:54:22 2014-09-28] Starting work on (Job{EmailQueue5} | ID: 5bc7959b6576872dd26771f1ae64d189 | EmailQ
ueue_Job | [{"time":1411876019,"interval":5}])

seems right job id is 5bc7959b6576872dd26771f1ae64d189, check status return 2


sorry for my bad english