Skip to content

[9.x] Enable batch jobs delay for Beanstalkd queue - #41789

Merged
taylorotwell merged 3 commits into
laravel:9.xfrom
civilcoder55:enable_batch_jobs_delay_beanstalkd_queue
Apr 2, 2022
Merged

taylorotwell merged 3 commits into
laravel:9.xfrom
civilcoder55:enable_batch_jobs_delay_beanstalkd_queue

Conversation

@civilcoder55

Copy link
Copy Markdown
Contributor

Enable batch jobs delay for Beanstalkd queue ⏰

[before]

  • batch jobs was ignoring delay time when pushing into beanstalkd.

[after]

  • batch jobs delay time will be considered and put into beanstalkd.
use App\Jobs\ImportCsv;
use Illuminate\Bus\Batch;
use Illuminate\Support\Facades\Bus;
 
$batch = Bus::batch([
    (new ImportCsv(1, 100))->delay($delay),
    (new ImportCsv(101, 200))->delay($delay)
])->dispatch();

civilcoder55 and others added 3 commits April 2, 2022 05:00
[before]
- batch jobs was ignoring delay time when pushing into beanstalkd.

[after]
- batch jobs delay time will be considered and put into beanstalkd.
@taylorotwell
taylorotwell merged commit 15b76f5 into laravel:9.x Apr 2, 2022
@GrahamCampbell GrahamCampbell changed the title [9.x] Enable batch jobs delay for Beanstalkd queue. [9.x] Enable batch jobs delay for Beanstalkd queue Apr 30, 2022
salmanarshad321 pushed a commit to salmanarshad321/framework that referenced this pull request Sep 23, 2026
* [9.x] Enable batch jobs delay for Beanstalkd queue.

[before]
- batch jobs was ignoring delay time when pushing into beanstalkd.

[after]
- batch jobs delay time will be considered and put into beanstalkd.

* Update BeanstalkdQueue.php

* Update BeanstalkdQueue.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants