Working blocking list pop :)

This commit is contained in:
Ruud Kamphuis 2013-03-13 12:41:32 +01:00
parent 132531e1a2
commit c2c4d06f7b
14 changed files with 606 additions and 177 deletions

View file

@ -5,5 +5,4 @@ class Bad_PHP_Job
{
throw new Exception('Unable to run this job!');
}
}
?>
}

View file

@ -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);
}
?>
}

View file

@ -7,5 +7,4 @@ class PHP_Job
sleep(1);
fwrite(STDOUT, 'Job ended!' . PHP_EOL);
}
}
?>
}

View file

@ -5,5 +5,4 @@ class Long_PHP_Job
{
sleep(600);
}
}
?>
}

View file

@ -5,5 +5,4 @@ class PHP_Error_Job
{
callToUndefinedFunction();
}
}
?>
}

View file

@ -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";

View file

@ -4,5 +4,4 @@ require 'bad_job.php';
require 'job.php';
require 'php_error_job.php';
require '../bin/resque';
?>
require '../bin/resque.php';