ReferencePolyaxon Webhooks

Polyaxon Webhooks

Webhooks are events triggered when something happens in Polyaxon, like run success, run deletion, or other lifecycle changes.

Overview

Webhooks allow Polyaxon to send POST requests to user-configured URLs in order to send notifications about platform events. The request body is a JSON object containing data about the triggered event, and the end result could be something as simple as a Slack notification or as complex as triggering a pipeline on a different infrastructure.

Setting up a webhook

Configuring webhooks can be done through the deployment config file. The only required fields to set up a new webhook are a trigger event and a target URL to notify. This target URL is your application URL, the endpoint where the POST request will be sent. Of course, this URL must be reachable from the Internet.

If the server responds with 2xx HTTP response, the delivery is considered successful. Anything else is considered a failure of some kind, and anything returned in the body of the response will be discarded.

Available events

Polyaxon currently supports these webhook events:

EventDescription
doneTriggered whenever a run reached a done status
succeededTriggered whenever a run experiment succeeds
failedTriggered whenever a run experiment fails
stoppedTriggered whenever a run experiment is stopped