import osfrom dataframer import Dataframerclient = Dataframer( api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted)client.dataframer.runs.cancel( "run_id",)
Copy
{ "error": "Cannot cancel job. Only RUNNING or PENDING jobs can be canceled."}
Data Generation Runs
Cancel run
Cancel a running or pending generation job
POST
/
api
/
dataframer
/
runs
/
{run_id}
/
cancel
Python
Copy
import osfrom dataframer import Dataframerclient = Dataframer( api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted)client.dataframer.runs.cancel( "run_id",)
Copy
{ "error": "Cannot cancel job. Only RUNNING or PENDING jobs can be canceled."}