I wanted to double check that it's not possible to modify a task name during the task run, right? I have the following tasks, which take an identical DataPayload TypedDict, but am separating them out to allow for human-friendly task names about the load operation:
Copy code
with case(save_snowflake, True): # type: ignore
load_snowflake(
task_args=dict(name="Load Owners into Snowflake"),
data_payload=owners_df,
)
load_snowflake(
task_args=dict(name="Load Properties into Snowflake"),
data_payload=properties_df,
)
load_snowflake(
task_args=dict(name="Load Amenities into Snowflake"),
data_payload=amenities_df,
)
load_snowflake.map(
data_payload=tuple(reservations_df),
task_args=dict(name="Load Reservations into Snowflake"),
)
Jason
05/12/2022, 4:06 PM
Otherwise, the preference would be to consolidate the identical structs into one load_snowflake map operation.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.