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

异步延时任务时间大于max_wait_time后不执行 #424

Open
xiaoxie110 opened this issue Dec 2, 2022 · 0 comments
Open

异步延时任务时间大于max_wait_time后不执行 #424

xiaoxie110 opened this issue Dec 2, 2022 · 0 comments
Assignees
Labels
analyzing Analyzing this issue

Comments

@xiaoxie110
Copy link

xiaoxie110 commented Dec 2, 2022

  1. Your software version (Screenshot of your startup)

    Software Version
    PHP 7.4.0
    Swoole 4.8.9
    LaravelS 3.7.34
    Laravel Framework [dev] 6.18.13
  2. Detail description about this issue(error/log)

异步延时任务时间大于max_wait_time后不执行

  1. Some reproducible code blocks and steps

    # max_wait_time = 5
    # 当delay time小于max_wait_time可以执行,并输出日志
    Task::deliver($task->delay(4));
    # 当delay time大于max_wait_time不能执行
    Task::deliver($task->delay(6));

`[2022-12-01T19:12:31.012289+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.012917+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.013092+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.013236+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.013368+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.013525+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.013656+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.013780+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.013900+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:31.014019+08:00] &&&&&&&&&&&&&&taskdelay--:4
[2022-12-01T19:12:35.017835+08:00] ------------taskId--:0
[2022-12-01T19:12:35.018749+08:00] ------------taskId--:1
[2022-12-01T19:12:35.018982+08:00] ------------taskId--:2
[2022-12-01T19:12:35.019161+08:00] ------------taskId--:3
[2022-12-01T19:12:35.019327+08:00] ------------taskId--:4
[2022-12-01T19:12:35.019670+08:00] ------------taskId--:5
[2022-12-01T19:12:35.019954+08:00] ------------taskId--:6
[2022-12-01T19:12:35.020230+08:00] ------------taskId--:7
[2022-12-01T19:12:35.020526+08:00] ------------taskId--:8
[2022-12-01T19:12:35.020806+08:00] ------------taskId--:9
[2022-12-01T19:12:35.059887+08:00] agent_id:1
[2022-12-01T19:12:36.850096+08:00] agent_id:2
[2022-12-01T19:12:38.462523+08:00] agent_id:4
[2022-12-01T19:12:40.023610+08:00] agent_id:5
[2022-12-01T19:12:41.556211+08:00] agent_id:7
[2022-12-01T19:12:43.075164+08:00] agent_id:6
[2022-12-01T19:12:44.587094+08:00] agent_id:3
[2022-12-01T19:12:46.106688+08:00] agent_id:10
[2022-12-01T19:12:47.602191+08:00] agent_id:9
[2022-12-01T19:12:49.098091+08:00] agent_id:8

[2022-12-01T19:13:22.835207+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.835844+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.836027+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.836182+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.836322+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.836482+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.836617+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.836747+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.836873+08:00] &&&&&&&&&&&&&&taskdelay--:6
[2022-12-01T19:13:22.837002+08:00] &&&&&&&&&&&&&&taskdelay--:6`

@xiaoxie110 xiaoxie110 added the analyzing Analyzing this issue label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzing Analyzing this issue
Projects
None yet
Development

No branches or pull requests

2 participants