inventory icon indicating copy to clipboard operation
inventory copied to clipboard

Inventory Cron jobs should be assigned to separate Cron Group

Open lbajsarowicz opened this issue 5 years ago • 2 comments

Preconditions (*)

  1. Magento 2.3.4
  2. MSI installed

Steps to reproduce (*)

  1. Run Cron Jobs

Expected result (*)

  1. Inventory Crons should be run in separate Group

Actual result (*)

  1. Inventory Cron jobs are run in the same Group that all Generic jobs.

lbajsarowicz avatar Feb 23 '20 22:02 lbajsarowicz

@lbajsarowicz could you please clarify why Inventory cron jobs should be in a separate group?

sidolov avatar Feb 24 '20 15:02 sidolov

  1. It's very common that there are multiple Jobs added to <group id="default">, some of them cause failures or locks, and then some of the tasks are not being run. DevOps / SysOps experts run different Cron Groups separately to avoid such situations: cron:run --group=index isolated from cron:run --group=default etc. To sum up: It's more reliable to have a separate group for all Inventory-related tasks.
  2. While running Functional Tests, I'd love to have the possibility of running only the tasks related to Inventory management, not all the cron jobs. I need to make sure that the Functional Test result is not a coincidence of other processes taking part in the default cron group. So it is more testable to have them isolated.

lbajsarowicz avatar Feb 24 '20 15:02 lbajsarowicz