Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/fledge/services/core/api/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ async def delete_service(request):
if svc_schedule['enabled'].lower() == 't':
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.


# Delete all configuration for the service name
await config_mgr.delete_category_and_children_recursively(svc)
Expand Down