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

[FIX] Drop Blackout Window after First Try #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexanderKanakis
Copy link
Collaborator

Copy link
Collaborator

@Shailesh351 Shailesh351 left a comment

Choose a reason for hiding this comment

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

@AlexanderKanakis I'm quite not understanding how cancelling event scheduler (timer) using event name cancelAllEventSchedulerJobForSessionAndName fixes the issue.

Can you please help me understand? Did you find any root cause? Thanks...

@AlexanderKanakis
Copy link
Collaborator Author

@AlexanderKanakis I'm quite not understanding how cancelling event scheduler (timer) using event name cancelAllEventSchedulerJobForSessionAndName fixes the issue.

Can you please help me understand? Did you find any root cause? Thanks...

I have not been able to find a root cause for the issue.

What I did notice during the meeting on Thursday is that the blackout window timeout scheduler works perfectly multiple times if the timer is longer than the event scheduler timer. Which means that something in the event scheduler interrupts it. So I tried killing the event scheduler and it worked (at least locally).

Copy link
Collaborator

@Shailesh351 Shailesh351 left a comment

Choose a reason for hiding this comment

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

@AlexanderKanakis I think the issue is still there. In the mongo DB I'm not seeing a continue blackout timeout timer scheduled in the second test.

Steps:

  1. DF sends timer event and App schedules both jobs( timeout:120 s, timer event: 180 s)

Screenshot 2022-07-22 at 6 15 23 PM

  1. after 120 s, App cancels the event-scheduler job.

Screenshot 2022-07-22 at 6 17 19 PM

  1. When DF again sends a timer event with 180 seconds, it clears past completed jobs and schedules only the event scheduler job. So in the second time testing it there is no timeout job scheduled.

Screenshot 2022-07-22 at 6 17 37 PM

@AlexanderKanakis Can you please check at your end?

@ear-dev
Copy link

ear-dev commented Jul 26, 2022

NOTE: Maybe this design needs to be reconsidered...... i.e. if we are trying to protect from a scheduler issue, it does not make sense to use the scheduler? chicken/egg? Need to think about this

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.

3 participants