Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Unable to shutdown aggregator running on poetry #17

Open
Ceres445 opened this issue Jun 8, 2023 · 2 comments
Open

Unable to shutdown aggregator running on poetry #17

Ceres445 opened this issue Jun 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Ceres445
Copy link
Contributor

Ceres445 commented Jun 8, 2023

Steps to replicate:

poetry run agg configs/agg.config.json
poetry run party configs/party0.config.json

curl localhost:5000/start_round

Attempt to kill agg with ctrl c

image

Forcing to stop
image

@Ceres445
Copy link
Contributor Author

Ceres445 commented Jun 8, 2023

Are background tasks being stopped

@app.get("/start_round")
async def start_round(background_tasks: BackgroundTasks):
    background_tasks.add_task(state_manager)
    return {"success": True}

@eigengravy
Copy link
Owner

Currently, the state_manager task will wait until the timeout runs out. Need to look into how to add an interrupt there.

@eigengravy eigengravy added the bug Something isn't working label Jun 8, 2023
@eigengravy eigengravy changed the title Unable to shutdown aggregator running on poetry [ BUG ] Unable to shutdown aggregator running on poetry Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants