Poll Command

cloud_composer.poll_command
ActionGoogle Cloudconnection required

Calls Composer POST /environments/{e}:pollAirflowCommand.

Read the output of a previously executed Airflow CLI command.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Cloud Composer
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id, location
Resolved by
config.connection_id, else node.connection_id

Configuration

7 fields, 4 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
project_id
GCP project id (overrides connection).
stringNo———
location
GCP location (overrides connection).
stringNo———
environment
Environment name.
stringYes———
execution_id
executionId from trigger_dag.
stringYes———
pod
pod from trigger_dag.
stringYes———
pod_namespace
podNamespace from trigger_dag.
stringYes———
next_line_number
First output line to fetch.
numberNo1≥ 0—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "next_line_number": 1
}

Output

One shape.

result

FieldTypeExample
output_lines
array—
output
string—
output_end
boolean—
exit_info
object—
done
boolean—
{
  "done": false,
  "exit_info": {},
  "output": "",
  "output_end": false,
  "output_lines": []
}

See Poll Command run in a workflow.

In a technical demo we add the Google Cloud Composer connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.