Webador / SlmQueueBeanstalkd

Beanstalkd adapter for SlmQueue module
Other
10 stars 26 forks source link

How to bury/release a job - Not working #52

Closed diegograssato closed 4 years ago

diegograssato commented 9 years ago

The class below does not exist, therefore the errors treatments do not work.

// Bury the job, with a priority of 10 throw new Exception\BuryableException(array('priority' => 10));

// Release the job, with a priority of 10 and delay of 5 seconds throw new Exception\ReleasableException(array('priority' => 10, 'delay' => 5));

ksvendsen commented 9 years ago

@diegograssato see https://github.com/juriansluiman/SlmQueueBeanstalkd/commit/dac19e39a0fe4e3364381c23e862a0d39786949f

The classes has been deprecated - you have to do it yourself in the job, by implementing QueueAwareInterface - see the post for example