Skip to content

Conversation

carcabot
Copy link
Contributor

Hi,

First of all thanks to author and contributors for this useful script.

I enjoyed it a lot but I also wanted to have a delay feature so i decided to contribute a little to this awesome script adding this feature.

    DEFAULT_PRIORITY = 1024; // most urgent: 0, least urgent: 4294967295
    DEFAULT_DELAY = 0; // no delay
    DEFAULT_TTR = 60; // 1 minute

Example of using:

$queue = new MyQueue();
$test = array('test'=>'test2');
$queue->addJob($test, 1024, 60, 60);

@carcabot carcabot mentioned this pull request Jun 11, 2015
@miccheng
Copy link
Member

Let me look into this today. Thanks @carcabot.

miccheng added a commit that referenced this pull request Aug 2, 2015
Priority, Delay , TTR Job
@miccheng miccheng merged commit 6bac0f4 into CoderKungfu:master Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants