Skip to content

Commit 8362c71

Browse files
committed
add comments
1 parent e838311 commit 8362c71

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/test_qlib_from_pip.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
run: |
3939
python -m pip install pywinpty --only-binary=:all:
4040
41+
# # joblib was released on 2025-05-04 with version 1.5.0, in which _backend_args was removed and replaced by _backend_kwargs.
42+
# This change caused the application to fail, so the version of joblib is restricted here.
43+
# This restriction will be removed in the next release. The current qlib version is: 0.9.6
4144
- name: Qlib installation test
4245
run: |
4346
python -m pip install pyqlib

qlib/utils/paral.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def __init__(self, *args, **kwargs):
2222
maxtasksperchild = kwargs.pop("maxtasksperchild", None)
2323
super(ParallelExt, self).__init__(*args, **kwargs)
2424
if isinstance(self._backend, MultiprocessingBackend):
25+
# 2025-05-04 joblib released version 1.5.0, in which _backend_args was removed and replaced by _backend_kwargs.
26+
# Ref: https://github.com/joblib/joblib/pull/1525/files#diff-e4dff8042ce45b443faf49605b75a58df35b8c195978d4a57f4afa695b406bdc
2527
if joblib.__version__ < "1.5.0":
2628
self._backend_args["maxtasksperchild"] = maxtasksperchild # pylint: disable=E1101
2729
else:

0 commit comments

Comments
 (0)