Skip to content

Commit 24edafc

Browse files
committed
refactor(clp_config): Use a constant for unlimited concurrent tasks per job.
1 parent 1065b1e commit 24edafc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/clp-py-utils/clp_py_utils/clp_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ def transform_for_container(self):
263263

264264

265265
class CompressionScheduler(BaseModel):
266+
UNLIMITED_CONCURRENT_TASKS_PER_JOB: ClassVar[NonNegativeInt] = 0
267+
266268
jobs_poll_delay: PositiveFloat = 0.1 # seconds
267-
max_concurrent_tasks_per_job: NonNegativeInt = 0 # A value of 0 disables the limit
269+
max_concurrent_tasks_per_job: NonNegativeInt = UNLIMITED_CONCURRENT_TASKS_PER_JOB
268270
logging_level: LoggingLevel = "INFO"
269271

270272

0 commit comments

Comments
 (0)