Skip to content

FOGL-10204 : Increased wait time for co-routine by 1 second to finish#1709

Merged
gnandan merged 1 commit intodevelopfrom
FOGL-10204
Oct 31, 2025
Merged

FOGL-10204 : Increased wait time for co-routine by 1 second to finish#1709
gnandan merged 1 commit intodevelopfrom
FOGL-10204

Conversation

@gnandan
Copy link
Member

@gnandan gnandan commented Oct 30, 2025

Increased wait time for co-routine so that disable schedule can finish before deleting category

Signed-off-by: nandan <nandan.ghildiyal@gmail.com>
await server.Server.scheduler.disable_schedule(sch_id)
# return control to event loop
await asyncio.sleep(1)
await asyncio.sleep(2)
Copy link
Member

Choose a reason for hiding this comment

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

How does this gurantee? and why does it works for all other services?

Copy link
Member Author

Choose a reason for hiding this comment

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

In case of management service two schedules are created one for Management service and one for FogMan poll Agent. However, for other services only one schedule is there. That's why cleaning up might take some extra time.

@gnandan gnandan merged commit dbef6af into develop Oct 31, 2025
6 checks passed
@gnandan gnandan deleted the FOGL-10204 branch October 31, 2025 14:14
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