springbot / magento2-queue

A generic job queue module for Magento2
GNU General Public License v3.0
17 stars 7 forks source link

Configurable max attempt | Failed flag | Bugfix for queue #7

Open hoekstramenno opened 7 years ago

hoekstramenno commented 7 years ago

1) First the table is updated with a new 'datetime' column called 'failed'. This one is showing the date when the job hits the maximum. This is useful for debugging and/or making queries.

2) The max attempts was hardcoded in the query. It is now a configurable value. If the max attempts is reached, update the failed column with the current datetime.

3) Bugfix: when a job is failed (max attempts is reached) it was not possible to add the same class/method.