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

Marwan Sarieddine

06/05/2020, 8:08 PM
Hi everyone - I am trying to understand what
Result.validate
does - and where exactly it is being called (can’t seem to find when its invoked by the runner?) - what does it mean for a task to have an invalid Result ? (any explanation would be much appreciated - thanks)
j

Jenny

06/05/2020, 8:35 PM
Hi @Marwan Sarieddine Result.validate runs any validator functions associated with this result and returns whether the result is valid or not. You can read more about it and results in general in the docs here: https://docs.prefect.io/api/latest/engine/result.html#result
m

Marwan Sarieddine

06/05/2020, 8:37 PM
Hi @Jenny - thanks for your response - so I see the
validate()
method implemented for
Result
- but I dont see where/when it is being called ?
j

Jenny

06/05/2020, 9:02 PM
Hi Marwan - The core team just updated me that Result.validate won't run automatically (yet). We plan to implement that as a part of Pin 16
m

Marwan Sarieddine

06/05/2020, 9:30 PM
@Jenny - Ah I see (thanks for checking), would be nice to know a rough timeline for its implementation
j

Jenny

06/05/2020, 10:24 PM
Hi Marwan. I did check timeline too but I'm afraid we don't have one yet. I'll make sure your interest is registered though.
👍 1