Skip to content

Commit

Permalink
SAASMLOPS-833 add configurable job timeout (#7)
Browse files Browse the repository at this point in the history
* SAASMLOPS-833 add configurable job timeout

* SAASMLOPS-833 fix whitespace
  • Loading branch information
james-crabtree-sp authored Sep 29, 2023
1 parent 3c22d90 commit e036661
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ class BytewaxMaterializationEngineConfig(FeastConfigBaseModel):
retry_limit: int = 2
""" (optional) Maximum number of times to retry a materialization worker pod"""

active_deadline_seconds: int = 86400
""" (optional) Maximum amount of time a materialization job is allowed to run"""

class BytewaxMaterializationEngine(BatchMaterializationEngine):
def __init__(
Expand Down Expand Up @@ -326,6 +328,7 @@ def _create_job_definition(self, job_id, namespace, pods, env):
"backoffLimit": self.batch_engine_config.retry_limit,
"completions": pods,
"parallelism": min(pods, self.batch_engine_config.max_parallelism),
"activeDeadlineSeconds": self.batch_engine_config.active_deadline_seconds,
"completionMode": "Indexed",
"template": {
"metadata": {
Expand Down

0 comments on commit e036661

Please sign in to comment.