Persistent task
Categories
Component ID
2672744
Component name
Persistent task
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
184
Component created
Component changed
Component body
Lightweight API module to schedule a task (job) and track it's status for a long time.
Main differences with Job scheduler module:
- task record is persistent even after completion (it allows to have a history of all accomplished tasks), while Job scheduler deletes task after completion
- each task has own status property, which you could manage and track as you want
- you decide when task is complete (i.e. could be processed in many iterations like batch)
Use cases
Run programmatic jobs to process or import something. Module will allow you to have a history of such actions.
Schedule a massive email or push message notifications (See Push Me module as an example)
Usage
The module has no UI. To work with jobs you need to to create/update/compete tasks programmatically:
PersistentTask::create();
PersistentTask::update();
Plans
- Integration with Rules
- Monitoring UI
- Add different types of backend storages

