Configuration of the Generic Execution Engine
Configure the Generic Execution Engine via Symfony configuration files. Default configuration:
pimcore_generic_execution_engine:
error_handling: 'continue_on_error'
execution_context:
default:
translations_domain: admin
Error Handling Behavior
Two error handling strategies are available:
continue_on_error- Job execution continues even if a step fails.stop_on_first_error- Job execution stops on the first step failure.
Set the global error handling strategy (used as fallback for all job runs):
pimcore_generic_execution_engine:
error_handling: 'stop_on_first_error'
Execution Context
Define custom execution contexts to override the translation domain or error handling strategy per bundle or job run:
pimcore_generic_execution_engine:
execution_context:
my_custom_context:
translations_domain: my_custom_domain
error_handling: 'continue_on_error'
Pass the execution context name when starting a job run:
$jobExecutionAgent->startJobExecution($job, $owner, 'my_custom_context');
The execution context sets the translation domain and error handling strategy for that run.
By default, the admin translation domain is used.
For error handling, the global configuration (continue_on_error) serves as fallback.
Currently, only the translation domain and error handling strategy support
per-context customization.
Job Run Cleanup
Job runs and their error logs are kept forever by default. To delete old job runs, enable the cleanup:
pimcore_generic_execution_engine:
cleanup:
enabled: true
older_than_days: 90
max_entries: 100000
enabled- Turns the cleanup on. Default:false.older_than_days- Delete job runs that were last modified more than this many days ago. An integer of 0 or higher, ornull(default).0andnullmean no age limit.max_entries- If the job run table still holds more runs after the age limit was applied, delete the oldest deletable runs until it is back at this number or no deletable run is left. The table can stay above the limit, because the newest run of every job name, runs not in a final state and runs without a stored job name are kept. An integer of 0 or higher, ornull(default).0andnullmean no limit.
The cleanup does nothing while enabled is false or while both limits are null or 0.
It runs as the maintenance task generic_execution_engine_cleanup of pimcore:maintenance, so it needs no cron
entry of its own. To run it manually:
bin/console pimcore:maintenance -j generic_execution_engine_cleanup
What the cleanup deletes:
- Only job runs in a final state (
finished,finished_with_errors,failedorcancelled). Running job runs are never deleted. - Never the newest job run of a job name, whatever its state, and never a job run without a stored job name.
Consumers such as scheduled actions treat a missing job run as "never ran", so the last run of a rarely scheduled
job stays even if it is older than
older_than_days. - Deleting a job run also deletes its error log entries and the markers that Studio keeps for hidden job runs.
Job runs are deleted in batches of 1000. The task holds a lock while it runs (stored in the database by default), so overlapping maintenance runs, also on several hosts, do not run the cleanup twice at the same time.
The cleanup relies on the stored job name column added by the migration
Pimcore\Bundle\GenericExecutionEngineBundle\Migrations\Version20261201000000. Until that migration has run, the
cleanup logs a message and skips.