fal · Arazzo Workflow
fal Submit And Conditionally Cancel
Version 1.0.0
Submit an inference job, check its status once, and cancel it if it has not finished.
View Spec
View on GitHub
Artificial IntelligenceGenerative AIGenerative MediaImage-GenerationVideo GenerationAudio GenerationInferenceServerlessGPUMCPArazzoWorkflows
Provider
Workflows
submit-and-cancel
Submit a job and cancel it if it is still running, otherwise return its result.
Submits an inference request, inspects its status, and either cancels the in-flight job to release capacity or retrieves the finished result.
1
submitJob
Submit the inference request and capture the request_id for later status and cancellation calls.
2
checkStatus
Read the current status of the submitted request once to decide whether to cancel it or fetch its result.
3
cancelJob
Cancel the in-queue or in-progress request to return its reserved GPU capacity to the pool.
4
fetchResult
Retrieve the final inference output when the job had already completed by the time it was checked.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.