Skip to content

Listing CronJobs

CronJobs are defined in the Skpr config, and once they are made available in the project configuration you can list them using teh Skpr CLI. This will also show you some basic information such as what is configured, the last run time, last successful run time and the suspend status of the CronJob.

You can temporarily stop CronJobs by using the suspend and continue them using the resume subcommand.

Usage

$ skpr cron list dev 
 ─────── ────────── ──────────── ─────────────────────────────── ─────────────────────────────── ─────────── 
  NAME    SCHEDULE   COMMAND      LAST SCHEDULE                   LAST SUCCESSFUL EXECUTION       SUSPENDED  
 ─────── ────────── ──────────── ─────────────────────────────── ─────────────────────────────── ─────────── 
  drush   @hourly    drush cron   2023-10-27 04:00:00 +0000 UTC   2023-10-27 04:00:24 +0000 UTC   No         
 ─────── ────────── ──────────── ─────────────────────────────── ─────────────────────────────── ─────────── 

More Information

$ skpr cron list --help
usage: skpr cron list [<flags>] <environment>

List all Crons which are associated with an environments.

Flags:
  --help  Show context-sensitive help (also try --help-long and --help-man).
  --json  Show output as JSON.

Args:
  <environment>  Name of the Environment

What's next?

After listing CronJobs, consider one of the following: