hi! is it possible to hook into prefect's flow reg...
# ask-community
v
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
Hello Verun! Can you provide more details with what you are trying to accomplish?
v
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
If you are subclassing the Flow class, you can override the
register
method with the relevant logic to your use case.
v
got it, thanks!
b
@Mariia Kerimova Are there any other flow/task lifecycle methods/hooks that we can use besides
register
??