-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Worker fails to run with Python 3.11 #3202
Comments
Fix compatibility error with python 3.11: spotify#3202
Fix compatibility error with python 3.11: #3202
Hmm, I hit this too. Let's check for new version.. |
No reverting back to Python 3.9 works though. So it's a work-around.. |
@jmrnilsson , the patch that @davidesba submitted in currently in |
@jmrnilsson
|
try to use luigi@master * spotify/luigi#3202 * https://stackoverflow.com/a/54794506/89391 * https://peps.python.org/pep-0508/
When migrationg a batch pipeline with multiple workers to Python 3.11 the workers fails to run.
Stacktrace:
The error is caused by a change in random.seed() for Python 3.11
The issue can be reproduced by running
pytest -c /dev/null test/worker_task_process_test.py
which fails on
test_context_manager_with_multiprocessing
One possible fix would be to replace
random.seed((processID, currentTime))
with something like
random.seed(processID * currentTime)
or
random.seed(str((processID, currentTime)))
The text was updated successfully, but these errors were encountered: