Skip to content

Commit

Permalink
add a warning
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush Kamat <[email protected]>
  • Loading branch information
ayushkamat committed Dec 11, 2023
1 parent 4e4c7c6 commit 4f338b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions latch/executions.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import os

import click
import gql
from latch_sdk_gql.execute import execute


def rename_current_execution(name: str):
token = os.environ.get("FLYTE_INTERNAL_EXECUTION_ID", None)
if token is None:
click.secho(
"Running in local execution context - skipping rename.",
dim=True,
italic=True,
)
return # noop during local execution / testing

execute(
Expand Down

0 comments on commit 4f338b5

Please sign in to comment.