haf
09/20/2021, 8:30 AMhaf
09/20/2021, 8:32 AM[2021-09-20 10:26:55+0200] INFO - prefect.TaskRunner | Task 'found eligible apps': Finished task run for task with final state: 'Success'
[2021-09-20 10:26:55+0200] INFO - prefect.TaskRunner | Task 'fetch_mmm_data': Starting task run...
[2021-09-20 10:26:55+0200] DEBUG - prefect.TaskRunner | Task 'fetch_mmm_data': Handling state change from Pending to Failed
[2021-09-20 10:26:55+0200] INFO - prefect.TaskRunner | Task 'fetch_mmm_data': Finished task run for task with final state: 'Failed'
[2021-09-20 10:26:55+0200] INFO - prefect.FlowRunner | Flow run FAILED: some reference tasks failed.
[2021-09-20 10:26:55+0200] DEBUG - prefect.FlowRunner | Flow 'nightly_mmm': Handling state change from Running to Failed
deleting tmpfiles dir: /var/folders/cc/70yk9qg16hj0kx5_5r_vq_y40000gn/T/tmpc8f7ggrq
haf
09/20/2021, 8:33 AMlist(...)
conversions in this code it would crash with no messageemre
09/20/2021, 8:47 AM@task(nout=3)
def setstuff(x, y):
xs, ys = set(x), set(y)
return ys.intersection(xs), xs.difference(ys), ys.difference(xs)
with Flow("aaaaa") as f:
a, b, c = setstuff([1, 2, 3], [1, 3, 5])
printr(a)
printr(b)
printr(c)
haf
09/20/2021, 8:48 AMnout
haf
09/20/2021, 8:48 AMx
and y
are @dataclass
valuesemre
09/20/2021, 8:58 AMfetch_mmm_data
haf
09/20/2021, 8:58 AMhaf
09/20/2021, 8:58 AMhaf
09/20/2021, 8:58 AMeligible_apps, missing_from_result, missing_from_metrics = app_set_intersection(
metrics_eligible_apps, result_eligible_apps
)
print_list(eligible_apps, task_args={"name": "found eligible apps"})
print_list(missing_from_result, task_args={"name": "missing from result"})
print_list(missing_from_metrics, task_args={"name": "missing from metrics"})
dataset = fetch_mmm_data.map(eligible_apps)
haf
09/20/2021, 9:02 AMemre
09/20/2021, 9:03 AMhaf
09/20/2021, 9:04 AMhaf
09/20/2021, 9:04 AMemre
09/20/2021, 9:08 AM__getitem__
, i.e. the collection needs to support x[0]
like operations.
Sets don't do that, because as a data structure, they do not guarantee ordering of their elements.haf
09/20/2021, 9:09 AMemre
09/20/2021, 9:12 AMhaf
09/20/2021, 9:13 AMhaf
09/20/2021, 9:14 AMemre
09/20/2021, 9:21 AMnew_state = Failed("At least one upstream state has an unmappable result.")
Sadly, this is not logged to stdout, you would probably see this message in prefect server directly, but in core its a little buried down.haf
09/20/2021, 9:22 AMhaf
09/20/2021, 12:06 PMemre
09/20/2021, 12:09 PM