sahilmn added the comment:
The task schedule is executed when `s.run()` is called. There should be a
*delay = 5* from the time the scheduling statement is executed.
If your claim is true, the priority argument is useless since it has no
impact on the execution order when `delay` values are
New submission from sahilmn :
`sched.enter` doesn't work as expected. If two events are scheduled with the
same delay, then their order of execution seems to be dictated by the order of
`enter` statements for the events instead of the priority order.
Ref attached file with example