Reputation: 109
Is there a webhook that notifies that a model publish operation has been completed (succeeded/failed)?
I found a webhook that notifies that the operation has started. However, it is not useful for me because I need to copy the model to another directory after the operation is completed and the model is updated.
Upvotes: 0
Views: 265
Reputation: 9909
As per the documentation of the model.publish
event, the payload.state
property in the webhook callback represents:
Reason why the notification was triggered. Possible values are PUBLISHING_PENDING and PUBLISHING_IN_PROGRESS.
Note: There is no PUBLISHING_COMPLETE state. Use the dm.version.added event to receieve notifications when publishing is finished.
So, consider using the dm.version.added event.
Upvotes: 1