forked from spinnaker/keel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply control loop pattern to task tracking
Similar to other control loops (e.g. resources, verifications, constraints), apply the same pattern to the "task" control loop. Add a TaskActuator class to separate out the individual task tracking. The new pattern brings consistency with the other control loops and includes metrics + error handling
- Loading branch information
Showing
14 changed files
with
300 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
keel-core/src/main/kotlin/com/netflix/spinnaker/config/TaskCheckConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.netflix.spinnaker.config | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties | ||
|
||
@ConfigurationProperties(prefix = "keel.task-check") | ||
class TaskCheckConfig: BaseSchedulerConfig() { | ||
// only uses properties from the BaseSchedulerConfig, | ||
// but this is here to give a separate prefix for overriding the values | ||
// via fast property or in the config file. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
keel-core/src/main/kotlin/com/netflix/spinnaker/keel/scheduled/TaskActuator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.netflix.spinnaker.keel.scheduled | ||
|
||
import com.netflix.spinnaker.keel.persistence.TaskRecord | ||
|
||
interface TaskActuator { | ||
|
||
suspend fun checkTask(task: TaskRecord) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.