mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 21:52:21 +00:00
Working blocking list pop :)
This commit is contained in:
parent
132531e1a2
commit
c2c4d06f7b
14 changed files with 606 additions and 177 deletions
|
@ -5,5 +5,4 @@ class Bad_PHP_Job
|
|||
{
|
||||
throw new Exception('Unable to run this job!');
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
|
@ -17,5 +17,4 @@ echo "Tracking status of ".$argv[1].". Press [break] to stop.\n\n";
|
|||
while(true) {
|
||||
fwrite(STDOUT, "Status of ".$argv[1]." is: ".$status->get()."\n");
|
||||
sleep(1);
|
||||
}
|
||||
?>
|
||||
}
|
|
@ -7,5 +7,4 @@ class PHP_Job
|
|||
sleep(1);
|
||||
fwrite(STDOUT, 'Job ended!' . PHP_EOL);
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
|
@ -5,5 +5,4 @@ class Long_PHP_Job
|
|||
{
|
||||
sleep(600);
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
|
@ -5,5 +5,4 @@ class PHP_Error_Job
|
|||
{
|
||||
callToUndefinedFunction();
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
|
@ -15,5 +15,4 @@ $args = array(
|
|||
);
|
||||
|
||||
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
|
||||
echo "Queued job ".$jobId."\n\n";
|
||||
?>
|
||||
echo "Queued job ".$jobId."\n\n";
|
|
@ -4,5 +4,4 @@ require 'bad_job.php';
|
|||
require 'job.php';
|
||||
require 'php_error_job.php';
|
||||
|
||||
require '../bin/resque';
|
||||
?>
|
||||
require '../bin/resque.php';
|
Loading…
Add table
Add a link
Reference in a new issue