Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $queue = new PhalconQueueBeanstalk(array('host'=>'host','port'=>'port'));
- $queue->choose('testTube');
- //Insert the job in the queue
- $queue->put(array('test' => 1000));
- $queue->choose('testTube');
- $queue->watch('testTube');
- //var_dump($queue->statsTube('testTube'));
- while (($job = $queue->peekReady()) !== false) {
- var_dump($job->getBody());
- $job->delete();
- }
- PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Call to undefined function yaml_parse()' in /var/www/html/queueing/testQueuePhp.php:62
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement