Skip to content

Commit

Permalink
add graceful termination to nextflow runtime task
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldesai1 committed Oct 11, 2024
1 parent 122f91c commit 8c4b134
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions latch/resources/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ def nextflow_runtime_task(cpu: int, memory: int, storage_gib: int = 50):
task_config = _custom_task_config(cpu, memory, storage_gib)

task_config.pod_spec.automount_service_account_token = True
# rahul: give flyte enough time to process the task after completion
task_config.pod_spec.termination_grace_period_seconds = 120

assert len(task_config.pod_spec.containers) == 1
task_config.pod_spec.containers[0].volume_mounts = [
Expand Down

0 comments on commit 8c4b134

Please sign in to comment.