Skip to content

Scheduling no resource version compare #76

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

Merged
merged 9 commits into from
Apr 22, 2020

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Apr 22, 2020

No description provided.

@@ -119,10 +114,11 @@ void scheduleEvent(CustomResourceEvent event) {
void eventProcessingFinishedSuccessfully(CustomResourceEvent event) {
try {
lock.lock();
log.debug("Even processing successful for event: {}", event);
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo

if (notScheduledYetEvent != null) {
scheduleEvent(notScheduledYetEvent);
if (eventStore.containsNotScheduledEvent(event.resourceUid())) {
log.debug("Scheduling not yet scheduled after previous successful processing: {}", event);
Copy link
Collaborator

Choose a reason for hiding this comment

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

doesn't make sense.. try to rephrase

scheduleEvent(notScheduledYetEvent);
if (eventStore.containsNotScheduledEvent(event.resourceUid())) {
CustomResourceEvent notScheduledEvent = eventStore.removeEventNotScheduledYet(event.resourceUid());
log.debug("Even processing failed. Scheduling the most recent event. Failed event: {}," +
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo

} else {
log.debug("Even processing failed. Attempting to re-schedule the event: {}", event);
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo

@csviri csviri merged commit 94a0146 into master Apr 22, 2020
@csviri csviri deleted the scheduling-no-resource-version-compare branch April 22, 2020 09:15
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