Create drush command to discover jobs

Created on 27 November 2019, almost 5 years ago
Updated 4 February 2024, 10 months ago

Problem/Motivation

While adding new cron tasks for different sites, normally the code gets sent to different environments and everything needs to be automated, so a drush command to discover new jobs would come in handy, so far normally I just clicked the "Discover jobs" button, but that adds a manual step.

By now I get by just with this drush command:
drush php-eval "\Drupal::service('ultimate_cron.discovery')->discoverCronJobs();"

Proposed resolution

But would be nice to have something specific for the module or maybe an argument for some of the already existing commands to include it, for example executing something like:
drush cron-list --discover-jobs

If that sounds something we could agree on I could create a patch for that.

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇪🇨Ecuador icampana Guayaquil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024