Skip to content

Commit 00a10a9

Browse files
feat(job-orchestration): Allow concurrent compression job processing by processing batches of compression tasks per job. (#1637)
Co-authored-by: kirkrodrigues <[email protected]>
1 parent cb2505d commit 00a10a9

File tree

5 files changed

+402
-158
lines changed

5 files changed

+402
-158
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
StrEnumSerializer = PlainSerializer(serialize_str_enum)
8282
# Generic types
8383
NonEmptyStr = Annotated[str, Field(min_length=1)]
84+
NonNegativeInt = Annotated[int, Field(ge=0)]
8485
PositiveFloat = Annotated[float, Field(gt=0)]
8586
PositiveInt = Annotated[int, Field(gt=0)]
8687
# Specific types
@@ -338,7 +339,10 @@ def transform_for_container(self):
338339

339340

340341
class CompressionScheduler(BaseModel):
342+
UNLIMITED_CONCURRENT_TASKS_PER_JOB: ClassVar[NonNegativeInt] = 0
343+
341344
jobs_poll_delay: PositiveFloat = 0.1 # seconds
345+
max_concurrent_tasks_per_job: NonNegativeInt = UNLIMITED_CONCURRENT_TASKS_PER_JOB
342346
logging_level: LoggingLevel = "INFO"
343347

344348

0 commit comments

Comments
 (0)