()
| 45 | |
| 46 | |
| 47 | def stop_service() -> str: |
| 48 | context = get_current_context() |
| 49 | with graphscope.flex.rest.ApiClient( |
| 50 | graphscope.flex.rest.Configuration(context.coordinator_endpoint) |
| 51 | ) as api_client: |
| 52 | api_instance = graphscope.flex.rest.ServiceApi(api_client) |
| 53 | return api_instance.stop_service() |
| 54 | |
| 55 | |
| 56 | def restart_service() -> str: |