Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <eric901201@gmail.com>
  • Loading branch information
Future-Outlier committed Jan 8, 2025
1 parent be02f9f commit cf83e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions flytekit/core/base_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,10 +723,10 @@ def dispatch_execute(
may be none
* ``DynamicJobSpec`` is returned when a dynamic workflow is executed
"""
if not self.disable_deck:
if not self.disable_deck and ctx.user_space_params is not None:
ctx.user_space_params._enable_deck = True # type: ignore
if DeckField.TIMELINE.value in self.deck_fields and ctx.user_space_params is not None and not self.disable_deck:
ctx.user_space_params.decks.append(ctx.user_space_params.timeline_deck)
if DeckField.TIMELINE.value in self.deck_fields:
ctx.user_space_params.decks.append(ctx.user_space_params.timeline_deck)
# Invoked before the task is executed
new_user_params = self.pre_execute(ctx.user_space_params)

Expand Down
2 changes: 0 additions & 2 deletions flytekit/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@
CACHE_KEY_METADATA = "cache-key-metadata"

SERIALIZATION_FORMAT = "serialization-format"

FLYTE_ENABLE_DECK = "FLYTE_ENABLE_DECK"

0 comments on commit cf83e06

Please sign in to comment.