yiisoft / yiisoft/yii2-queue

The queue task was delayed in ttr seconds

Open
#438 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted status:need more info
Dominant language
PHP
Stars
1.1k
Forks
285
Avg merge
5d 3h
Merged PRs (30d)
2

Description

What steps will reproduce the problem?

I set parameter ttr=7200, seconds。
I found a strange phenomenon that the task was not wrong but it was executed after 7200 seconds.
My config like this:
'dataExport' => [
'class' => yii\queue\redis\Queue::class,
'channel' => 'dataExportQueue',
'as log' => common\behaviors\QueueLogBehavior::class,
'ttr' => 7200,
],

What's expected?

I guess it should execute immediately but I didn t get task feedback.

What do you get instead?
Additional info

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

Start with the yii\queue\redis\Queue configuration shown in the report and inspect how it interprets ttr=7200 during queue execution. Reproduce the behavior with the provided dataExport settings, then determine whether ttr is being used as a timeout or an execution delay. Done means the behavior is confirmed and either corrected or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, redis
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.