arazzo: 1.0.1
info:
title: OpenAI Cancel Fine-Tuning Job
summary: Inspect a running fine-tuning job and cancel it only if it is still in progress.
description: >-
Retrieves a fine-tuning job, branches on its status, and cancels the job only
when it is still validating, queued, or running; if it has already reached a
terminal status the flow ends without issuing a cancel. Every step spells out
its request inline so the flow can be read and executed without opening the
underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-610.60
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-610.60
capability_name: Artificial Intelligence Management
spec: openai-fine-tuning-api-openapi.yml
confidence: 0.85
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: fineTuningApi
url: ../openapi/openai-fine-tuning-api-openapi.yml
type: openapi
workflows:
- workflowId: cancel-fine-tuning-job
summary: Cancel an in-progress fine-tuning job after checking its status.
description: >-
Reads the current state of a fine-tuning job and issues a cancel request only
when the job is still running, returning the post-cancel status.
inputs:
type: object
required:
- apiKey
- jobId
properties:
apiKey:
type: string
description: OpenAI API key used as a Bearer token.
jobId:
type: string
description: The id of the fine-tuning job to inspect and possibly cancel.
steps:
- stepId: getJob
description: Retrieve the fine-tuning job and branch on whether it is still running.
operationId: retrieveFineTuningJob
parameters:
- name: Authorization
in: header
value: "Bearer $inputs.apiKey"
- name: fine_tuning_job_id
in: path
value: $inputs.jobId
successCriteria:
- condition: $statusCode == 200
outputs:
status: $response.body#/status
onSuccess:
- name: jobRunning
type: goto
stepId: cancelJob
criteria:
- context: $response.body
condition: $.status == "validating_files" || $.status == "queued" || $.status == "running"
type: jsonpath
- name: jobTerminal
type: end
criteria:
- context: $response.body
condition: $.status == "succeeded" || $.status == "failed" || $.status == "cancelled"
type: jsonpath
- stepId: cancelJob
description: Cancel the still-running fine-tuning job.
operationId: cancelFineTuningJob
parameters:
- name: Authorization
in: header
value: "Bearer $inputs.apiKey"
- name: fine_tuning_job_id
in: path
value: $inputs.jobId
successCriteria:
- condition: $statusCode == 200
outputs:
status: $response.body#/status
outputs:
initialStatus: $steps.getJob.outputs.status
finalStatus: $steps.cancelJob.outputs.status
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.