This module allows you to schedule actions and other executable plugins to run at a future time. It stores the details of these scheduled tasks in a content entity, enabling you to manage and prioritize them before they execute.
This module allows actions and other executable plugins to be scheduled for execution at a future time.
It uses a content entity type, scheduled_executable, to store the details of the plugin to execute.
Scheduled executables (SE) can be queried, inspected, and deleted prior to execution. Multiple scheduled items that are for the same execution time can be resolved at once, allowing priority logic to be applied.
Example:
// Create an instance of an executable plugin such as an action.
$action = $this->actionPluginManager->createInstance('my_action', ['config' => 'value']);
// Create a scheduled_executable.
$scheduled_executable = ScheduledExecutable::create()
->setExecutablePlugin('action', $action)
->setTargetEntity($my_entity)
->setExecutionTime(12345678);
$scheduled_executable->save();
Ask your assistant about Scheduled Executable
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.0-alpha1 | Pre-release | 8–10 | Mar 11, 2024 | ||
| 2.x-dev | Dev | 8–10 | Mar 11, 2024 |