Skip to content

Commit 68dcd2d

Browse files
committed
dask: deprecate old worker options
1 parent 367f12e commit 68dcd2d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

deepaas/config.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,26 @@
4545
cfg.IntOpt('predict-workers',
4646
short='p',
4747
default=1,
48+
deprecated_for_removal=True,
4849
help="""
4950
Specify the number of workers to spawn for prediction tasks. If using a CPU you
5051
probably want to increase this number, if using a GPU probably you want to
5152
leave it to 1. (defaults to 1)
53+
54+
This option is deprecated for removal, as DEEPaaS has switched to Dask to
55+
manage the execution of background tasks. Please check the documentation
56+
for the 'dask-config' option for more details.
5257
"""),
5358
cfg.IntOpt('train-workers',
5459
default=1,
60+
deprecated_for_removal=True,
5561
help="""
5662
Specify the number of workers to spawn for training tasks. Unless you know what
5763
you are doing you should leave this number to 1. (defaults to 1)
64+
65+
This option is deprecated for removal, as DEEPaaS has switched to Dask to
66+
manage the execution of background tasks. Please check the documentation
67+
for the 'dask-config' option for more details.
5868
"""),
5969
cfg.StrOpt('dask-config',
6070
default=None,

0 commit comments

Comments
 (0)