Skip to content

Conversation

@Mryashbhardwaj
Copy link
Member

No description provided.

@Mryashbhardwaj Mryashbhardwaj changed the base branch from main to feat_task_duration_SLA September 23, 2025 05:56
@Mryashbhardwaj Mryashbhardwaj changed the base branch from feat_task_duration_SLA to main September 24, 2025 04:01
@Mryashbhardwaj Mryashbhardwaj marked this pull request as draft September 24, 2025 04:01
@Mryashbhardwaj Mryashbhardwaj marked this pull request as ready for review September 24, 2025 06:33
return me.ToErr()
}

func (s *JobRunService) createOperatorRun(ctx context.Context, event *scheduler.Event, operatorType scheduler.OperatorType) error {

Choose a reason for hiding this comment

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

we could have kept create operator run & register sla's independent we don't need to keep them in a same function.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes we can do this, logically right

return err
}

if existingOperatorRunState == nil || *existingOperatorRunState != scheduler.StateRetry {

Choose a reason for hiding this comment

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

In my opinion we should see this whole operation as two sub functions fetchAllSLAAlertConfigs & Registration.

return err
}

switch event.Type {
Copy link
Member Author

Choose a reason for hiding this comment

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

same things can be done here as well

Mryashbhardwaj and others added 3 commits September 26, 2025 19:36
* fix: enrich event context in airflow callbacks

---------

Co-authored-by: Yash Bhardwaj <[email protected]>
@Mryashbhardwaj Mryashbhardwaj merged commit ff5bf51 into main Sep 29, 2025
5 of 6 checks passed
@Mryashbhardwaj Mryashbhardwaj deleted the integrate_callback_and_sla branch September 29, 2025 08:26
@Mryashbhardwaj Mryashbhardwaj restored the integrate_callback_and_sla branch September 29, 2025 09:30
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.

3 participants