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

[9.x] Enable batch jobs delay for SQS queue #41788

Merged

Conversation

civilcoder55
Copy link
Contributor

Enable batch jobs delay for SQS queue ⏰

[before]

  • batch jobs was ignoring delay time when sending message to sqs.

[after]

  • batch jobs delay time will be considered and sent to sqs.
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 2 commits April 2, 2022 05:04
[before]
- batch jobs was ignoring delay time when sending message to sqs.

[after]
- batch jobs delay time will be considered and sent to sqs.
@taylorotwell taylorotwell merged commit 8326ba8 into laravel:9.x 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