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

STUD-294: Use LeaderLatch for SQS receiving #514

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Conversation

AndrewWestberg
Copy link
Member

No description provided.

@@ -19,20 +19,29 @@ import kotlin.reflect.full.primaryConstructor
import kotlinx.coroutines.cancelChildren
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import org.apache.curator.framework.recipes.leader.LeaderLatch
Copy link
Collaborator

@wlara wlara Jul 31, 2024

Choose a reason for hiding this comment

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

We'll need to wait until the Zookeeper issues are fixed, before merging this.
Or maybe you can add a config flag to enable/ disable usage of the Leader latch in this Daemon

Copy link
Member Author

Choose a reason for hiding this comment

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

I have adjusted the code so that if the curator is disabled, the code assumes it is the leader and works the same as before.

@AndrewWestberg AndrewWestberg merged commit f529749 into master Jul 31, 2024
2 checks passed
@AndrewWestberg AndrewWestberg deleted the amw/STUD-294 branch July 31, 2024 18:53
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