Skip to content

Commit 1f0bfca

Browse files
committed
dask: deprecate old worker options
1 parent 531a9f9 commit 1f0bfca

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

deepaas/config.py

+20-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,27 @@
3737
cfg.IntOpt('workers',
3838
short='p',
3939
default=1,
40+
deprecated_for_removal=True,
4041
help="""
41-
Specify the number of workers to spawn. If using a CPU you probably want to
42-
increase this number, if using a GPU probably you want to leave it to 1.
43-
(defaults to 1)
42+
Specify the number of workers to spawn for prediction tasks. If using a CPU you
43+
probably want to increase this number, if using a GPU probably you want to
44+
leave it to 1. (defaults to 1)
45+
46+
This option is deprecated for removal, as DEEPaaS has switched to Dask to
47+
manage the execution of background tasks. Please check the documentation
48+
for the 'dask-config' option for more details.
49+
"""),
50+
cfg.IntOpt('train-workers',
51+
default=1,
52+
deprecated_for_removal=True,
53+
help="""
54+
Specify the number of workers to spawn for training tasks. Unless you know what
55+
you are doing you should leave this number to 1. (defaults to 1)
56+
57+
This option is deprecated for removal, as DEEPaaS has switched to Dask to
58+
manage the execution of background tasks. Please check the documentation
59+
for the 'dask-config' option for more details.
60+
>>>>>>> 68dcd2d (dask: deprecate old worker options)
4461
"""),
4562
cfg.StrOpt('dask-config',
4663
default=None,

0 commit comments

Comments
 (0)