Skip to content

[9.x] Enable batch jobs delay for redis queue ⏰#41783

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
civilcoder55:enable_batch_jobs_delay_redis_queue
Apr 1, 2022
Merged

[9.x] Enable batch jobs delay for redis queue ⏰#41783
taylorotwell merged 1 commit into
laravel:9.xfrom
civilcoder55:enable_batch_jobs_delay_redis_queue

Conversation

@civilcoder55

Copy link
Copy Markdown
Contributor

enable batch jobs delay for redis queue ⏰

[before]

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

[after]

  • batch jobs delay time will be considered and stored into redis.
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();

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

[after]
- batch jobs delay time will be considered and stored into redis.
@taylorotwell taylorotwell merged commit f0537b5 into laravel:9.x Apr 1, 2022
@GrahamCampbell GrahamCampbell changed the title enable batch jobs delay for redis queue ⏰ [9.x] Enable batch jobs delay for redis queue ⏰ Apr 2, 2022
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