zero1/magento2-run-cron-job

Installs: 2 868

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/zero1/magento2-run-cron-job

1.1.2 2025-02-18 13:44 UTC

This package is auto-updated.

Last update: 2025-09-18 14:49:07 UTC


README

Small CLI addition to allow running of cronjobs by job_code. This could be for debuging purposes or to add to your crontab.

Example

To test generation of sitemaps php bin/magento cron:run-job --job-code=sitemap_generate

The job-code is that same as would be found in the cron_schedule table Or in a modules crontab.xml for example: https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Sitemap/etc/crontab.xml#L10

Versions

  • For Magento >= 2.4, use 1.1.0
  • For Magento < 2.4, use 1.0.1