Add an option to run a BatchOperation via cron

Created on 17 April 2024, 7 months ago
Updated 30 June 2024, 5 months ago

Problem/Motivation

Since we can already run a script via hook update, post update, and post deploy, it would be a nice addition to be able to run it via cron.

It may make sense to build this functionality into the module, or bring https://www.drupal.org/project/codit_crons β†’ into the modern Drupal era.

This should:

  1. There should be a setting to turn on or off cron processing in general.
  2. If cron is enabled, look for a cron value by calling getCronTiming() which will be in the interface, but have a base definition that returns empty by default.
  3. cache what BatchOperations have this key AND are not marked as run once so that we do not have to keep reading all the files every time cron runs.
  4. engage every cron run and decide which BatchOperation (based on the cache) need to be run.
  5. log when they ran (I think this part is already baked in)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024