Skip to content
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

META-299 migrate to prefect #4

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

lucasotodegraeve
Copy link

@lucasotodegraeve lucasotodegraeve commented Jan 22, 2025

Rewrite it in Rust Prefect.

There are two parts to the code. One part is a script to facilitate authorization (see the readme for more details). The other is the Prefect flow to sync the data. I essentially took the SQL statements out of the old code and constructed the needed Prefect flows around them. The code is kept as simple as possible.

Each Teamleader resource (e.g. companies, users, contacts, etc.) is synced in a subflow. If one resource fails (e.g. companies), the other flows can still continue.

On INT (and likely also on QAS) some resource subflows fails because Teamleader for that environments is not set up properly.

There are some items left to do, but now seems a nice moment to get feedback.

TODO:

  • check Teamleader PRD (waiting for credentials)
  • Move Jenkinsfile from openshift/ to .openshift/
  • Add documentation to create new authentication tokens
  • Currently get_last_modified_date uses the latest modified date from one of the etl_harvest tables. Our other flows use a block to store this timestamp. Which option should be chosen for this use case?

@lucasotodegraeve lucasotodegraeve changed the title Meta 299 migrate to prefect META-299 migrate to prefect Jan 22, 2025
@lucasotodegraeve lucasotodegraeve force-pushed the meta-299-migrate-to-prefect branch 3 times, most recently from 2d3c242 to 5f14a0a Compare January 23, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant