Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

延 时任务最长能延时多长时间? #2

Open
laughmaker opened this issue Feb 18, 2017 · 0 comments
Open

延 时任务最长能延时多长时间? #2

laughmaker opened this issue Feb 18, 2017 · 0 comments

Comments

@laughmaker
Copy link

/**
 * 延时入队列
 * @param $dealy
 * @param $job
 * @param string $data
 * @param $queue
 * @return mixed
 * @throws \Exception
 */
public function laterOn($dealy, $job, $data = '', $queue = null)
{
    if ($this->canPush()) {
        return $this->later($dealy, $job, $data, $queue);
    } else {
        throw new \Exception("max jobs number exceed! the max jobs number is {$this->maxJob}");
    }
}

延 时任务最长能延时多长时间?
谢谢!

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

No branches or pull requests

1 participant