Skip to content

Commit

Permalink
Use new fileaccess to build execution state (#2452)
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor authored Jun 6, 2024
1 parent 47f2a29 commit 4309c5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flytekit/bin/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,15 @@ def setup_execution(
logger.error(f"No data plugin found for raw output prefix {raw_output_data_prefix}")
raise

ctx = ctx.new_builder().with_file_access(file_access).build()

es = ctx.new_execution_state().with_params(
mode=ExecutionState.Mode.TASK_EXECUTION,
user_space_params=execution_parameters,
)
# create new output metadata tracker
omt = OutputMetadataTracker()
cb = ctx.new_builder().with_file_access(file_access).with_execution_state(es).with_output_metadata_tracker(omt)
cb = ctx.new_builder().with_execution_state(es).with_output_metadata_tracker(omt)

if compressed_serialization_settings:
ss = SerializationSettings.from_transport(compressed_serialization_settings)
Expand Down

0 comments on commit 4309c5e

Please sign in to comment.