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

Add Reschedule to FivetranSensor #69

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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

@@ -399,6 +413,34 @@ def get_sync_status(self, connector_id, previous_completed_at):
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