Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Add Reschedule to FivetranSensor#69

Open
PubChimps wants to merge 5 commits intofivetran:mainfrom
PubChimps:reschedule
Open

Add Reschedule to FivetranSensor#69
PubChimps wants to merge 5 commits intofivetran:mainfrom
PubChimps:reschedule

Conversation

@PubChimps
Copy link
Contributor

When connector has schedule_type manual and sync_status reschedule, connector will hang as Fivetran expects manual restart. This pr automatically (or optionally manually) handles that restart.

See docs

else:
return False

def pause_and_restart(connector_id, reschedule_for, reschedule_time):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an instance method, so the first argument should be self

f'Connector is in "rescheduled" state and needs to be manually restarted'
)
self.pause_and_restart(
connector_details["status"]["rescheduled_for"], reschedule_time
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing the first argument to pause_and_restart (connector_id)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants