QuestionQ26

VerifiedStore Operations and Admin

A custom cron job was added to an Adobe Commerce system to collect data for several reports. Its crontab.xml configuration is as follows:

Question Image

The job is data-intensive and runs for 20 to 30 minutes each night. Within a few days after deployment, it is observed that the site’s sitemap.xml file has not been updated since the new job was added.

What should be done to resolve this issue?

Explanation

Most Adobe Commerce cron jobs use the default group. A long-running reporting job in that group can delay other scheduled jobs, causing the sitemap-generation task not to run on time. Putting the reporting job in its own cron group and setting use_separate_process to 1 runs that group’s jobs in a separate PHP process, so they do not block sitemap updates.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!