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 :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community