Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Simple Cron

3,283 sites Security covered
View on drupal.org

Simple Cron is a lightweight module that simplifies the creation and management of cron jobs. It provides a plugin system that allows for easy implementation of new cron tasks, offering configurations for enabling/disabling, scheduling, and displaying status messages for each job.

The Simple Cron is a light-weight module for cron job management.

The module provides a SimpleCron plugin that simplifies the implementation of new cron jobs. The build configuration form is also included in the SimpleCron plugin to make it easier to create a custom cron job settings.

Requirements

Features

  • Cron job implementation using Plugin API
  • Support Drupal core and contributed modules Cron's
  • Support Drupal core and contributed modules Queues
  • Configuration per cron job (enable/disable, crontab, etc.)
  • Build configuration form per Plugin (No more custom configuration forms!)
  • One plugin for multiple parallel tasks
  • Status/Error messages per cron job
  • Single cron job URL
  • Drush support (list, start jobs from the command line)

Alternatives and similar modules

  • Ultimate Cron - A more complex but flexible module that provides plugins for scheduling, launching, and logging cron jobs. It also uses a different implementation of new cron jobs.

Declaring new cron jobs

<?php

namespace Drupal\example_module\Plugin\SimpleCron;

use Drupal\simple_cron\Plugin\SimpleCronPluginBase;

/**
 * Example cron job implementation.
 *
 * @SimpleCron(
 *   id = "example_cron_job",
 *   label = @Translation("Example cron job", context = "Simple cron")
 * )
 */
class ExampleCron extends SimpleCronPluginBase {

  /**
   * {@inheritdoc}
   */
  public function process(): void {
    // Cron job process implementation.
  }

}

See simple_cron_examples sub-module for more examples.

Activity

Total releases
2
First release
Dec 2024
Latest release
7 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Release date
1.1.0 Stable Nov 18, 2025
1.1.0-beta2 Pre-release Dec 13, 2024