Parallel Catalog Synchronization

Full catalog synchronizations cannot run in parallel. It is possible, however, to start multiple partial sync CronJobs on condition the items you want to synchronize don't overlap.

You can pick one or more products from a catalog and synchronize them using a chosen catalog version sync job. The CatalogVersionSyncCronJob gets the fullSync attribute. This attribute is set by service during its creation, and contains information whether a given cron job performs a partial or a full synchronization.

There are some points to consider when starting an A catalog synchronization job:
  • if another B.fullSync == true sync job is running --> failure ("Cannot perform partial sync cron job when there is other full sync cron job running")

  • if A.fullSync == true, and any other sync is running --> failure ("Cannot perform full sync cron job when others are running")

  • if A.fullSync == false, and no other sync is running --> success

  • if A.fullSync == false, and there is another sync B with B.fullSync == false is running -> compare schedules:

    • overlap --> failure ("Cannot perform partial sync when there are items overlapping from other running cron job")

    • The number of items exceed the limit (catalog.sync.partial.max.items default value set to 500) --> failure ("Cannot perform partial sync when number of items to sync exceed the limit")

    • no overlap --> success

If you set the abortOnCollidingSync attribute to true, it sets a cron job status to ABORTED when the given cron job fails to pass the mentioned validation, otherwise the status stays as UNKNOWN for backward compatibility.

When checking for overlapping items with other running cron jobs, the items are taken into account as of the beginning of the cron job. So even if a cron job did synchronize most of its items, the overlap will be checked for all of them.