hi! is it possible to hook into prefect's flow registration logic to run some custom logic of our own, when a flow is being registered with the prefect server backend?
m
Mariia Kerimova
02/03/2021, 6:35 PM
Hello Verun! Can you provide more details with what you are trying to accomplish?
v
Verun Rahimtoola
02/03/2021, 6:36 PM
we've subclassed the flow object to record the exact commit of the repo when the flow gets registered, for purposes of reproducibility. so when the flow is registered we want to ensure this commit is also actually published (ie, pushed) to the git repo
m
Mariia Kerimova
02/03/2021, 6:57 PM
If you are subclassing the Flow class, you can override the
register
method with the relevant logic to your use case.
v
Verun Rahimtoola
02/03/2021, 8:18 PM
got it, thanks!
b
BK Lau
02/03/2021, 11:49 PM
@Mariia Kerimova Are there any other flow/task lifecycle methods/hooks that we can use besides
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.