Skip to content

Commit

Permalink
pass kwargs to custom_task
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldesai1 committed Feb 6, 2024
1 parent f8fcd3b commit b547413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latch/resources/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def custom_memory_optimized_task(cpu: int, memory: int):
return functools.partial(task, task_config=task_config)


def custom_task(cpu: int, memory: int, *, storage_gib: int = 500):
def custom_task(cpu: int, memory: int, *, storage_gib: int = 500, **kwargs):
"""Returns a custom task configuration requesting
the specified CPU/RAM allocations
Expand Down Expand Up @@ -461,4 +461,4 @@ def custom_task(cpu: int, memory: int, *, storage_gib: int = 500):
" 4949 GiB)"
)

return functools.partial(task, task_config=task_config)
return functools.partial(task, task_config=task_config, **kwargs)

0 comments on commit b547413

Please sign in to comment.