TimoKoerber/laravel-one-time-operations

[Enhancement] Track the status of an operation

Opened this issue · 0 comments

It would be great to allow for the tracking of the "status" of an operation.

Currently, the only thing tracked about an Operation is its name, how it was dispatched, and when it was dispatched. It would be extremely useful to also track whether or not the operation job was successful or not.

A possible way would be to add a last_status column or something like that to the operations table. Then hook into Queue::after in the package Service Provider to update on whether or not the job finished with or without a failure.