handsome-ocean-79057
03/15/2023, 9:29 AMfinished: false, finished_at: null for failed tasks and runs, while the metaflow UI backend returns status: failed, finished_at: <timestamp>handsome-ocean-79057
03/15/2023, 10:05 AMattempt data in the DB which is not surfaced via client API: https://github.com/Netflix/metaflow-service/blob/40bf564df6ece04ebfe4a7a3d3b34bdd2c35a6fc/services/ui_backend_service/data/db/tables/task.py#L1[…]95
Any suggestions for how to do this? Some options occurred to me, maybe I'm missing something:
1. Use metaflow client API
2. Export the DB to a data warehouse and transform it again, but wanted to avoid reinventing the wheel for this existing logic.
3. Scrape the UI backend APIsbulky-afternoon-92433
03/15/2023, 2:19 PMtask = Task("TestFlow/123/retry_step/456", attempt=3)
task.metadata
when not specifying an attempt, all attempt metadata is available. Note that the instantiation does not fail even for nonexistent attempts.bulky-afternoon-92433
03/15/2023, 2:26 PMtask.created_at, and
max([meta.created_at for meta in task.metadata if meta.name == "attempt_ok"])
but this works only for 'clean' failures where the process is able to write the metadatahandsome-ocean-79057
03/15/2023, 2:38 PMbulky-afternoon-92433
03/15/2023, 2:42 PM