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

Create task for sync job status check #65

Conversation

aballiet
Copy link
Contributor

@aballiet aballiet commented Sep 29, 2023

Add a dbt task to check until job completed given a job run Id.

See discussion here

This would help reduce risks of failures / task resubmit generating an extra job when running long syncs.

Details:

Currently if Kestra worker fails at fetching the status when wait=True on this current plugin resubmitted task will trigger a new job instead of using the existing one

Flow will first trigger in a dedicated task, then “wait for status” will be done in a dedicated task.
If “wait for status” task fails (worker is dead / killed / pod restarted, this task can last for 10h+ so kind of likely) => task is resubmitted with the jobId to fetch for

No need for pod restart (due to k8s node upgrades for example) supervision

@aballiet aballiet marked this pull request as ready for review September 29, 2023 08:27
@brian-mulier-p brian-mulier-p changed the base branch from master to create-task-for-sync-job-status-check September 29, 2023 08:29
@brian-mulier-p brian-mulier-p merged commit 7eeb715 into kestra-io:create-task-for-sync-job-status-check Sep 29, 2023
0 of 2 checks passed
@aballiet aballiet deleted the create-task-for-sync-job-status-check branch September 29, 2023 20:44
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.

2 participants