The queue task was delayed in ttr seconds
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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