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

Refactor + some fixes and testing #5

Merged
merged 6 commits into from
Mar 13, 2024

Conversation

artursouza
Copy link
Contributor

No description provided.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
@artursouza artursouza requested review from cicoyle and JoshVanL March 13, 2024 21:17
@artursouza artursouza marked this pull request as draft March 13, 2024 21:17
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
@artursouza artursouza marked this pull request as ready for review March 13, 2024 22:16
This fork has different goals from Scalingo's go-etcd-cron library.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be worth adding more details here, like what our diff goals are.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are on the top.

@@ -122,13 +106,13 @@ func WithErrorsHandler(f func(context.Context, Job, error)) CronOpt {
})
}

func WithEtcdMutexBuilder(b EtcdMutexBuilder) CronOpt {
func WithEtcdClient(c *etcdclient.Client) CronOpt {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Im now relying on this func: WithEtcdMutexBuilder in scheduler code:

	c, err := etcdcron.NewEtcdMutexBuilder(clientv3.Config{Endpoints: etcdEndpoints})

Once we switch to this library in scheduler code we will need to keep this change in mind.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is cleaner IMO. Compilation errors are the best way to remember to change :)

Copy link
Collaborator

@cicoyle cicoyle left a comment

Choose a reason for hiding this comment

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

Small nits, otherwise generally LGTM

@artursouza artursouza merged commit 90ed93a into diagridio:master Mar 13, 2024
1 check passed
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