Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

feat: update schedule #119

Merged
merged 4 commits into from
Sep 15, 2023
Merged

feat: update schedule #119

merged 4 commits into from
Sep 15, 2023

Conversation

elijaharita
Copy link
Contributor

@elijaharita elijaharita commented Sep 12, 2023

update singularity schedules on startup in case settings have changed. branched from #110

closes #114

@elijaharita elijaharita marked this pull request as ready for review September 13, 2023 23:30
Copy link
Contributor

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

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

Please correct error check, otherwise LGTM

if foundSchedule != nil {
// If schedule was found, update it
logger.Infow("Schedule found for provider. Updating with latest settings...", "id", foundSchedule.ID)
l.singularityClient.DealSchedule.UpdateSchedule(&deal_schedule.UpdateScheduleParams{
Copy link
Contributor

Choose a reason for hiding this comment

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

You should check for an error no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, good catch, thanks!

is there no lint for that?

@elijaharita elijaharita merged commit 380d80f into main Sep 15, 2023
7 checks passed
@elijaharita elijaharita deleted the feat/update-schedule branch September 15, 2023 22:50
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.

Use schedule update in motion API
2 participants