Jon Ruhnke
01/14/2022, 9:35 PMKevin Kho
Jon Ruhnke
01/14/2022, 9:38 PMJon Ruhnke
01/14/2022, 9:39 PMKevin Kho
Jon Ruhnke
01/14/2022, 9:40 PMKevin Kho
Jon Ruhnke
01/14/2022, 9:42 PMJon Ruhnke
01/14/2022, 9:43 PMJon Ruhnke
01/14/2022, 9:44 PMKevin Kho
parse_file
normally succeeds, you can reduce your footprint by combining these tasks. If not, you can just save that dataframe, return the location and load it in the load_to_sql
task.Jon Ruhnke
01/14/2022, 9:46 PMKevin Kho
Jon Ruhnke
01/14/2022, 9:47 PMJon Ruhnke
01/14/2022, 9:48 PMKevin Kho
def some_function():
return 1
@task
def some_task():
return some_function() + 1
If an operation is pretty much guaranteed to succeed, you don’t need to put it in a task since you don’t need observability and retries around it.Jon Ruhnke
01/14/2022, 9:51 PMJon Ruhnke
01/14/2022, 10:04 PMKevin Kho