Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide API endpoint to shutdown Raiden #6118

Merged
merged 1 commit into from
May 11, 2020
Merged

Provide API endpoint to shutdown Raiden #6118

merged 1 commit into from
May 11, 2020

Conversation

karlb
Copy link
Contributor

@karlb karlb commented May 5, 2020

This can then be used in the WebUI.

Closes #6113.

@karlb karlb marked this pull request as ready for review May 5, 2020 14:11
@auto-assign auto-assign bot requested a review from hackaugusto May 5, 2020 14:12
@karlb karlb marked this pull request as draft May 5, 2020 14:23
@@ -1432,3 +1435,7 @@ def get_status(self) -> Response:
return api_response(result=dict(status="syncing", blocks_to_sync=to_sync))
else:
return api_response(result=dict(status="unavailable"))

def shutdown(self) -> Response:
spawn_named("trigger shutdown", self.raiden_api.shutdown)
Copy link
Contributor

Choose a reason for hiding this comment

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

I forgot, this has to be linked to the main greenlet, otherwise exceptions will be lost

@karlb karlb marked this pull request as ready for review May 7, 2020 15:42
@auto-assign auto-assign bot requested a review from hackaugusto May 7, 2020 15:43
This can then be used in the WebUI.

Closes #6113.
@karlb karlb merged commit 7b9396e into raiden-network:develop May 11, 2020
@karlb karlb deleted the rest-shutdown branch May 11, 2020 08:28
@konradkonrad
Copy link
Contributor

This is missing an update to the docs: #3775

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.

Add API Endpoint to shutdown raiden
3 participants