QuestionQ23

Adobe Commerce Architecture and Customization Techniques

An Adobe Commerce developer has been asked to create a new cron job that runs a method that has already been written.

What are the minimum required steps to do this?

  • A Create a crontab.xml file and a new system configuration in system.xml for the schedule.
  • B Create crontab.xml and cron_groups.xml files to assign the new job to a cron group.
  • C Create a crontab.xml file and set a schedule for the new cron job.
Explanation

An Adobe Commerce custom cron job is defined in a module’s crontab.xml, which identifies the class and method to invoke and provides the cron schedule. The job can use the built-in default cron group, so neither cron_groups.xml nor an administrator configuration in system.xml is required for the minimal implementation.

Learn more

Community Discussion

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