Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $queue = new PhalconQueueBeanstalk(array('host'=>'host','port'=>'port'));
  2. $queue->choose('testTube');
  3. //Insert the job in the queue
  4. $queue->put(array('test' => 1000));
  5.  
  6.  
  7. $queue->choose('testTube');
  8. $queue->watch('testTube');
  9.  
  10. //var_dump($queue->statsTube('testTube'));
  11.  
  12. while (($job = $queue->peekReady()) !== false) {
  13. var_dump($job->getBody());
  14. $job->delete();
  15. }
  16.  
  17. 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