Support the ongoing development of Laravel.io →
Requests Queues Architecture
Last updated 2 years ago.
0
Solution

Ok since there was no input regarding this, I'm adding my approach for this (maybe someone find this useful later on)

Set main artisan command that will be run as scheduled job every minute or 5 minutes (will see about it). It checks in database if there is running job (artisan command), if so do nothing, if there isn't pick first pending and run it.

Create artisan command(s) that will main command call, that accept arguments (i need those)

In controller that's processing the form, I've just added inserts in to database for two tables, one for the request and second for schedule job that's used by main artisan command.

That would be it. Thanks for reading, and if you have something to add, pelease do :)

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

shkabo shkabo Joined 6 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.