yiisoft / yiisoft/yii2-queue

how to stop a delay job?

Open
#87 5 comments 0 reactions 1 assignee View on GitHub

@zhuravljov is already working on this.

Since Jul 23, 2017.

type:docs type:enhancement
Dominant language
PHP
Stars
1.1k
Forks
285
Avg merge
5d 3h
Merged PRs (30d)
2

Description

hello,I got a delay jobID and I want to stop it later. how to stop it ?
this is my code

 $jobID = Yii::$app->queue->delay(1234)->push(new \console\jobs\DemoJob([
            'function' => "test1",
            'params'   => ['order_id' => 123],

        ]));

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.