Scheduling Project Actions

You can schedule actions in an wizard that are executed for projects started by the wizard. This can be used for example, to execute a purge script after a certain amount of time. Actions can also be executed repeatedly.

Project actions are defined globally in scripting/actions/actions.json. To define actions to be scheduled, you must place an scheduled_actions.json file in the wizards directory, containing the list of scheduled actions.

Example 7: The actions.json File

[
    {
        "name": "Purge projects",
        "script_path": "purge.py"
    }
]

Example 8: The scheduled_actions.json File

[
    {
        "name": "Purge projects",
        "repeat": false,
        "interval": 200,
        "unit": "s"
    }
]