Windmill · Arazzo Workflow
Windmill Run a Script and Clean up its Job
Version 1.0.0
Run a script, await its result, capture it, then delete the completed job record.
View Spec
View on GitHub
AutomationInternal ToolsOpen SourceProCode API CompositionScriptsWebhooksWorkflow EngineWorkflowsArazzoWorkflows
Provider
Workflows
run-script-and-cleanup-job
Run a script, await and capture its result, then delete the job record.
Starts an asynchronous run, polls until completion, captures the result of the completed job, then deletes the completed job to purge its data.
1
runScript
runScriptByPath
Submit an asynchronous run of the script by path. The response body is the new job UUID.
2
pollResult
getCompletedJobResultMaybe
Poll the completed-result-maybe endpoint, looping back while the completed flag is false and proceeding once the job has finished.
3
captureResult
getCompletedJob
Read the full completed job to capture the result and success flag before the record is purged.
4
deleteJob
deleteCompletedJob
Delete the completed job record to remove its args, result and logs.