https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Marwan Sarieddine

08/10/2020, 5:49 PM
Is there a way using the UI logs tab to open the task that caused an error ?
n

nicholas

08/10/2020, 5:50 PM
Hi @Marwan Sarieddine - if you mouse over the log, a button should come up that will take you to the task run in question 🙂
m

Marwan Sarieddine

08/10/2020, 5:51 PM
Ah - yep just saw the
to task run
button Thank you!
n

nicholas

08/10/2020, 5:51 PM
No problem! We'll look to make that a little clearer in the future 🙂
m

Marwan Sarieddine

08/10/2020, 6:09 PM
@nicholas as a follow-up, is there a way using the task run schematic viewer to see the inputs of the task ? The usecase is I have a mapped task, where one child failed and the other passed, I’d like to know which inputs caused the one that failed
n

nicholas

08/10/2020, 6:11 PM
@Marwan Sarieddine unfortunately that's not possible because Prefect doesn't see the data that's passed between tasks
m

Marwan Sarieddine

08/10/2020, 6:11 PM
ah I see - what about in prefect core server - i.e. not prefect cloud ?
nevermind- I guess no as well, given server UI is a replica of cloud …
n

nicholas

08/10/2020, 6:14 PM
That's correct @Marwan Sarieddine 🙂
You can always call
flow.run()
locally and use the logger or print statements to test inputs.
m

Marwan Sarieddine

08/10/2020, 6:19 PM
true - but that’s what I had done - I ran the flow on a small subset of the data locally and the flow ran successfully. Then running the flow on the entire data - caused a failed child task - which I am trying to figure out the inputs that caused the failure so I can copy them remotely and try it out …
n

nicholas

08/10/2020, 6:21 PM
Got it - as long as the data can be serialized, you can always send it to your Server logs via a logger (
<http://self.logger.info|self.logger.info>
etc.); since this will send data to Cloud/Server, you'll want to use it accordingly. You can read more about loggers here: https://docs.prefect.io/core/concepts/logging.html#prefect-loggers
👍 1
m

Marwan Sarieddine

08/10/2020, 6:23 PM
thanks - thats a reasonable solution
🙂 1
@nicholas is there way to filter the flow logs to get the logs of a specific task ? (also when it comes to downloading logs - is there an easy way to download all the flow’s logs - because I only see a way to download the logs that are rendered on the page - which aren’t much)
n

nicholas

08/10/2020, 9:36 PM
You can navigate to the logs of a specific task or task run to get the logs for just that task, there isn't a way to filter them from the flow logs page.
As for downloading all the logs, no, there isn't a way to do that right now
m

Marwan Sarieddine

08/10/2020, 9:51 PM
I see - thanks
2 Views