Cleanup Workflow Operation
ID: cleanup
Description
This operation removes all files from the workspace and the working file repository which belong to media package
elements of the running workflow unless their flavor is matched by the value configured in preserve-flavors. It is
usually used as last workflow operation in a workflow to ensure that temporary processing artefacts are removed.
Parameter Table
| Configuration Key | Example | Description | Default |
|---|---|---|---|
| preserve-flavors | security/* |
Comma-separated list of flavors to be preserved. | |
| delete-external | true |
If files from external working file repositories should be deleted | false |
| delay | 5 |
Seconds to wait before removing files | 1 |
Notes
- If
delete-externalis set totrue, the externally referenced media package elements will be removed from its source where the value ofpreserve-flavorsdoes not match - If you have an shared working file repository setting
delete-externaltofalsewill speed up the cleanup process while still removing all files.
Operation Example
- id: cleanup
description: Remove temporary processing artifacts
configurations:
- preserve-flavors: security/*
- delete-external: true
- delay: 5