Skip to content

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.

4 participants