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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
location GCP location (overrides connection). | string | No | — | — | — |
environment Environment name. | string | Yes | — | — | — |
execution_id executionId from trigger_dag. | string | Yes | — | — | — |
pod pod from trigger_dag. | string | Yes | — | — | — |
pod_namespace podNamespace from trigger_dag. | string | Yes | — | — | — |
next_line_number First output line to fetch. | number | No | 1 | ≥ 0 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"next_line_number": 1
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
output_lines | array | — |
output | string | — |
output_end | boolean | — |
exit_info | object | — |
done | boolean | — |
{
"done": false,
"exit_info": {},
"output": "",
"output_end": false,
"output_lines": []
}Related Google Cloud Composer nodes
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.