Skip to content

Commit

Permalink
fix(service): set job timeouts correctly (#3651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius committed Nov 8, 2023
1 parent d3eedb5 commit db0f8cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renku/ui/service/controllers/datasets_add_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def prepare_paths(self):
_file["file_url"],
job_timeout=int(os.getenv("WORKER_DATASET_JOBS_TIMEOUT", 1800)),
result_ttl=int(os.getenv("WORKER_DATASET_JOBS_RESULT_TTL", 500)),
ttl=int(os.getenv("WORKER_DATASET_JOBS_TIMEOUT", 1800)),
failure_ttl=int(os.getenv("WORKER_DATASET_JOBS_RESULT_TTL", 500)),
)
enqueued_paths.append(_file["file_url"])

Expand Down
2 changes: 2 additions & 0 deletions renku/ui/service/controllers/datasets_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def renku_op(self):
tag=self.ctx.get("tag", None),
job_timeout=int(os.getenv("WORKER_DATASET_JOBS_TIMEOUT", 1800)),
result_ttl=int(os.getenv("WORKER_DATASET_JOBS_RESULT_TTL", 500)),
ttl=int(os.getenv("WORKER_DATASET_JOBS_TIMEOUT", 1800)),
failure_ttl=int(os.getenv("WORKER_DATASET_JOBS_RESULT_TTL", 500)),
commit_message=self.ctx["commit_message"],
data_directory=self.ctx.get("data_directory"),
)
Expand Down

0 comments on commit db0f8cf

Please sign in to comment.