-
-
Notifications
You must be signed in to change notification settings - Fork 381
GSK-1943 - make jobs cancellable from the Hub #1698
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
Conversation
giskard/commands/cli_worker.py
Outdated
| run_daemon(is_server, url, api_key, hf_token) | ||
| else: | ||
| if sys.platform == "win32": | ||
| if sys.platform == "win32" or sys.version_info < (3, 10): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uvloop didn't work on my my with python 3.9, but it's technically not related to the feature, so can remove for now
| run_daemon(is_server, url, api_key, hf_token) | ||
| else: | ||
| if sys.platform == "win32": | ||
| if settings.force_asyncio_event_loop or sys.platform == "win32": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have issues when debugging worker from intellij when uvloop is used. I added the flag mostly for myself, but in case the same problems appear in prod there'll be a way to let people switch from one implementation to the other
Inokinoki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Will do some tests
# Conflicts: # giskard/ml_worker/websocket/listener.py # tests/communications/test_websocket_actor.py
kevinmessiaen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Conflicts: # giskard/ml_worker/websocket/__init__.py # giskard/ml_worker/websocket/utils.py
|

main PR - https://github.com/Giskard-AI/giskard-hub/pull/289