Skip to content

Commit 017c3a3

Browse files
committed
[internal-api-php-client] feat: RETRY_CONTAINER in JobType enum
1 parent 19a0806 commit 017c3a3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/JobFactory/JobType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ enum JobType: string
1010
case ROW_CONTAINER = 'container';
1111
case PHASE_CONTAINER = 'phaseContainer';
1212
case ORCHESTRATION_CONTAINER = 'orchestrationContainer';
13+
case RETRY_CONTAINER = 'retryContainer';
1314

1415
public function isContainer(): bool
1516
{

tests/JobFactory/JobRuntimeResolverTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,6 +1992,14 @@ public function resolveJobTypeDataProvider(): Generator
19921992
'expectedType' => JobType::PHASE_CONTAINER,
19931993
];
19941994

1995+
yield 'explicit type retry' => [
1996+
'componentId' => 'keboola.ex-db-snowflake',
1997+
'jobData' => [
1998+
'type' => 'retryContainer',
1999+
],
2000+
'expectedType' => JobType::RETRY_CONTAINER,
2001+
];
2002+
19952003
// Test cases for parallelism condition
19962004
yield 'parallelism numeric positive' => [
19972005
'componentId' => 'keboola.ex-db-snowflake',

0 commit comments

Comments
 (0)