Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save saumalya75/1498a2e702d50a74eb92a388d146d740 to your computer and use it in GitHub Desktop.

Select an option

Save saumalya75/1498a2e702d50a74eb92a388d146d740 to your computer and use it in GitHub Desktop.
xcom tasks
s3_sensor = CustomS3Sensor(
task_id=file_details['file_id'] + "_s3_sensor"
, poke_interval=10
, retry_delay=timedelta(seconds=25)
, xcom_task_id_key=file_details['file_id'] + "_s3_sensor_xcom_key"
, refresh_xcom=False
, conn_type="aws"
, wildcard_match=False
, from_xcom=True
, xcom_source_task_id=file_details['file_id'] + "_minio_sensor"
, xcom_key=file_details['file_id'] + "_minio_sensor_xcom_key"
, dag=dag
)
data_processor = CustomFileProcessingOperator(
task_id=file_details['file_id'] + "_data_processor"
, xcom_task_id_key=file_details['file_id'] + "_data_processor_xcom_key"
, xcom_source_task_id=file_details['file_id'] + "_minio_sensor"
, xcom_key=file_details['file_id'] + "_minio_sensor_xcom_key"
, source_bed_type="aws"
, source_conn_id="aws_default"
, dag=dag
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment