yiisoft / yiisoft/yii2-queue

Check status by class name

Open
#387 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

From docs - to see status need pass job id

if (!Yii::$app->queue->isDone($id))
echo 'working...'

What about check status by class name?
For example Yii::$app->queue->isAnyWorking(testJob::class) which mean- is any not done job for class TestJob?

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.

Research direction

The issue points to the queue documentation and the existing isDone($id) entry point; start by tracing that API through the extension and its supported queue drivers. Define the expected behavior for checking unfinished jobs by class name, then update the documentation and add coverage for the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.