Skip to content

Commit

Permalink
Add missing interruptible argument for creating jobs (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton authored Nov 21, 2024
1 parent c53cfbe commit 5eded67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/litdata/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import time

__version__ = "0.2.30"
__version__ = "0.2.31"
__author__ = "Lightning AI et al."
__author_email__ = "[email protected]"
__license__ = "Apache-2.0"
Expand Down
2 changes: 2 additions & 0 deletions src/litdata/streaming/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def _execute(
num_nodes: int,
machine: Optional["Machine"] = None,
command: Optional[str] = None,
interruptible: bool = False,
) -> None:
"""Remotely execute the current operator."""
if not _LIGHTNING_SDK_AVAILABLE:
Expand All @@ -370,6 +371,7 @@ def _execute(
teamspace_id=studio._teamspace.id,
cluster_id=studio._studio.cluster_id,
machine=machine or studio._studio_api.get_machine(studio._studio.id, studio._teamspace.id),
interruptible=interruptible,
)

has_printed = False
Expand Down
1 change: 1 addition & 0 deletions tests/streaming/test_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def print_fn(msg, file=None):
"teamspace_id": "teamspace_id",
"cluster_id": "cluster_id",
"machine": "cpu",
"interruptible": False,
}

generated_kwargs = (
Expand Down

0 comments on commit 5eded67

Please sign in to comment.