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

support starting a reconciliation task with cron schedule #87

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

amirmalka
Copy link
Contributor

Overview

@amirmalka amirmalka requested a review from matthyx September 22, 2024 09:02
Signed-off-by: Amir Malka <[email protected]>
Signed-off-by: Amir Malka <[email protected]>
Copy link

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
Copy link
Collaborator

matthyx commented Oct 2, 2024

I am a bit concerned by the old package... maybe we should consider https://github.com/go-co-op/gocron instead

adapter: a,
}

if cfg.CronSchedule != "" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would instantiate another ticker instead of rewriting a new branch of code.
Please take a look at https://github.com/krayzpipes/cronticker/blob/main/cronticker/ticker.go (maybe we can just copy/paste this ticker and use the other cron package for our needs)

Copy link
Collaborator

Choose a reason for hiding this comment

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

@amirmalka PTAL at my proposal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we release?

Signed-off-by: Matthias Bertschy <[email protected]>
Copy link

github-actions bot commented Oct 2, 2024

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx matthyx merged commit 565261b into main Oct 2, 2024
22 checks passed
@matthyx matthyx deleted the reconciliation-task-with-cron branch October 2, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants