mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
WIP
This commit is contained in:
parent
e541fa9b70
commit
b8f98eecd2
7 changed files with 150 additions and 102 deletions
|
@ -3,8 +3,9 @@ class PHP_Job
|
|||
{
|
||||
public function perform()
|
||||
{
|
||||
sleep(120);
|
||||
fwrite(STDOUT, 'Hello!');
|
||||
fwrite(STDOUT, 'Start job! -> ');
|
||||
sleep(1);
|
||||
fwrite(STDOUT, 'Job ended!' . PHP_EOL);
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -14,6 +14,6 @@ $args = array(
|
|||
),
|
||||
);
|
||||
|
||||
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
||||
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
|
||||
echo "Queued job ".$jobId."\n\n";
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue