vasu2809 commented on issue #29241:
URL: https://github.com/apache/airflow/issues/29241#issuecomment-1409002581
Additional Composer Tasks that also sometimes similar issues
push_credentials_on_server = SSHOperator(
task_id="push_credentials_on_server",
ssh_hook=ComputeEngineSSHHook(
instance_name=GCE_INSTANCE,
zone=GCE_ZONE,
use_oslogin=True,
use_iap_tunnel=False,
use_internal_ip=True,
),
command='echo -e "{{
ti.xcom_pull(task_ids="get_credentials_from_config", key="cred_file_content")
}}" | sudo tee'
f" {transfer_run_directory}/"
'{{ ti.xcom_pull(task_ids="load_config", key="transfer_id") }}/'
f"credentials",
dag=dag,
)
push_agent_config_on_server = SSHOperator(
task_id="push_agent_config_on_server",
ssh_hook=ComputeEngineSSHHook(
instance_name=GCE_INSTANCE,
zone=GCE_ZONE,
use_oslogin=True,
use_iap_tunnel=False,
use_internal_ip=True,
),
command='echo "{{ ti.xcom_pull(task_ids="create_agent_config",
key="agent_config") }}" | sudo tee'
f" {transfer_run_directory}/"
'{{ ti.xcom_pull(task_ids="load_config", key="transfer_id") }}/'
'{{ ti.xcom_pull(task_ids="load_config", key="transfer_id") }}.json',
dag=dag,
)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]