Skip to content

Commit 51ec5c9

Browse files
committed
Update BeanstalkSampleQueue.php
Added Priority , Delay and TTR Features
1 parent dcde312 commit 51ec5c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/queues/BeanstalkSampleQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919
);
2020
}
2121

22-
public function addJob($newJob = null)
22+
public function addJob($newJob = null, $DEFAULT_PRIORITY=1024, $DEFAULT_DELAY=0, $DEFAULT_TTR=60)
2323
{
2424
$formatted_data = array('worker'=>$this->queueWorker, 'data'=>$newJob);
2525
$this->dataSource->add($formatted_data, $DEFAULT_PRIORITY, $DEFAULT_DELAY, $DEFAULT_TTR);

0 commit comments

Comments
 (0)