-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛♻️ Bugfix/handle ever running tasks - refactor director-v2 workflow …
…scheduler (#2798) * refactored dask client: use publish/unpublish on dask-scheduler instead of fire_and_forget * dask-client now returns task status/results * improved testing to replay issue * stop raising asyncio.CancelledError from dask-worker as not supported * cancellation is now handled using distributed.Event * set up log level when run as a scheduler * added test for dask compatibility * upgraded dask to latest * added blosc/lz4 to dask-distributed such that director-v2 also has the required libraries
- Loading branch information
Showing
48 changed files
with
1,610 additions
and
911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 11 additions & 23 deletions
34
services/dask-sidecar/src/simcore_service_dask_sidecar/computational_sidecar/errors.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,17 @@ | ||
class ComputationalSidecarException(Exception): | ||
"""Basic exception""" | ||
from pydantic.errors import PydanticErrorMixin | ||
|
||
|
||
class ServiceRunError(ComputationalSidecarException): | ||
"""Error in the runned service""" | ||
class ComputationalSidecarRuntimeError(PydanticErrorMixin, RuntimeError): | ||
... | ||
|
||
def __init__( | ||
self, | ||
service_key: str, | ||
service_version: str, | ||
container_id: str, | ||
exit_code: int, | ||
service_logs: str, | ||
) -> None: | ||
super().__init__( | ||
f"The service {service_key}:{service_version} running " | ||
f"in container {container_id} failed with exit code {exit_code}\n" | ||
f"last logs: {service_logs}" | ||
) | ||
|
||
class ServiceRunError(ComputationalSidecarRuntimeError): | ||
msg_template = ( | ||
"The service {service_key}:{service_version} running" | ||
"in container {container_id} failed with exit code {exit_code}\n" | ||
"last logs: {service_logs}" | ||
) | ||
|
||
class ServiceBadFormattedOutputError(ComputationalSidecarException): | ||
"""Badly formatted output generated by the service run""" | ||
|
||
def __init__(self, service_key: str, service_version: str) -> None: | ||
super().__init__( | ||
f"The service {service_key}:{service_version} produced badly formatted data" | ||
) | ||
class ServiceBadFormattedOutputError(ComputationalSidecarRuntimeError): | ||
msg_template = "The service {service_key}:{service_version} produced badly formatted data: {exc}" |
Oops, something went wrong.