Skip to content

Commit

Permalink
Deepcopy before pop
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Aug 19, 2024
1 parent fdade68 commit 4e80531
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gaps/cli/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import logging
import datetime as dt
from pathlib import Path
from copy import deepcopy
from warnings import warn
from inspect import signature

Expand Down Expand Up @@ -55,6 +56,7 @@ def kickoff_job(ctx, cmd, exec_kwargs):
If `exec_kwargs` is missing some arguments required by the
respective `submit` function.
"""
exec_kwargs = deepcopy(exec_kwargs)
hardware_option = HardwareOption(exec_kwargs.pop("option", "local"))
if hardware_option.manager is None:
_kickoff_local_job(ctx, cmd)
Expand Down

0 comments on commit 4e80531

Please sign in to comment.