Application updated by the user should be immediately reschedule
A race condition can occur in the scheduler which makes the update being reschedule only in reschedule_after seconds (default 60s)
Steps (from memory)
On the scheduler:
- original App is given to a worker to be handled;
- App is updated;
- updated App is put in the WorkQueue;
- the updated App is not handled by a worker, because another one is already --> stay in the queue, without delay;
- original App is handled by the
reschedulefunction; - original App is in the WorkQueue, with a 60s delay.
Unskip tests in rak/functionals/integration/test_kubernetes_migration.py when this issue is handled:
Edited by Toni Finger