-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge sync and async operator #40
Conversation
0846400
to
605b6f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repo name is airflow-provider-fivetran-async
and we are deprecating the async operator. I think we should merge this the other way, i.e., having FivetranOperatorAsync and have deferrable as True by default. Having it as False, should invoke the sync part of the operator
The current default value of the deferrable param is True. I decided to keep FivetranOperator without the suffix Async because I was thinking of having the suffix Async in the operator/sensor name and the deferrable param looks not in sync. But happy to change it if you think otherwise makes more sense. |
fivetran_provider_async/example_dags/example_fivetran_bigquery.py
Outdated
Show resolved
Hide resolved
9221e83
to
3b0de44
Compare
fef66ec
to
39bfa16
Compare
agree with the point discussed on sync vs async merge
`FivetranSensorAsync` allows you to monitor a Fivetran sync job for completion before running downstream processes. | ||
`FivetranOperatorAsync` submits a Fivetran sync job and polls for its status on the triggerer. | ||
`FivetranSensor` allows you to monitor a Fivetran sync job for completion before running downstream processes. | ||
`FivetranOperator` submits a Fivetran sync job and polls for its status on the triggerer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`FivetranOperator` submits a Fivetran sync job and polls for its status on the triggerer. | |
`FivetranOperator` submits a Fivetran sync job and polls for it's status on the triggerer.When deferrable param is set to False, it would not release the Airflow worker slot and waits for the job to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phanikumv the FivetranOperator does not wait for the job to complete. It only submits and then we use a sensor to monitor for completion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah right sorry , just confused with OSS operators :)
closes: #35