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
AIArtificial 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
submitRequest
Submit the inference request and capture the request_id for later status and cancellation calls.
2
checkStatus
getRequestStatus
Read the current status of the submitted request once to decide whether to cancel it or fetch its result.
3
cancelJob
cancelRequest
Cancel the in-queue or in-progress request to return its reserved GPU capacity to the pool.
4
fetchResult
getRequestResult
Retrieve the final inference output when the job had already completed by the time it was checked.