Apache Airflow · Arazzo Workflow
Apache Airflow Upsert a Variable
Version 1.0.0
Look up an Airflow variable and update it if it exists, otherwise create it, then read the result back.
View Spec
View on GitHub
ApacheDAGData PipelineETLOpen SourceOrchestrationPythonSchedulingWorkflowArazzoWorkflows
Provider
Workflows
upsert-variable
Create or update an Airflow variable by key.
Resolves the variable by key, patches it when present and creates it when absent, then reads it back to verify the stored value.
1
lookupVariable
get_variable
Look the variable up by key. A 200 means it exists and should be patched; a 404 means it must be created. Both outcomes are expected, so both are treated as success and the branch is decided on the status code.
2
updateVariable
patch_variable
Patch the existing variable. The update_mask restricts the write to the value and description fields, and the key in the body must match the key in the path.
3
createVariable
post_variables
Create the variable when the lookup found nothing under this key.
4
readBackVariable
get_variable
Read the variable back and require the stored value to match what was sent, closing the loop on either branch.