EventGrid notification when ACI container stops
I'd like to be notified when my container (group) terminates. An event grid notification would be ideal. It should include the exit code as part of the payload
We’re interested in pursuing this support, please leave comments with feedback about your scenario and what publishing/subscribing you wish to do.
Toshiyuki Hara commented
My use case is to spin up a container which runs a test with Cypress and receive a notification when failed.
I want to use an event grid notification.
Workaround is polling of request the Azure Resource Manager API using Logic Apps.
Sean Feldman commented
There's an effort to consolidate and improve tracking of the Azure services events in a public repository https://weblogs.asp.net/sfeldman/azure-events-wishlist. Feel free to add this event there.
Javier Rebagliatti commented
We'd also want to get a notification when a container provisioning is completed. We're creating the containers from an Azure Function, and the long polling mechanism used to monitor the provisioning state is not cost-effective (we're paying for computing while waiting for the resource to be created). It would be better for us to call the Create Container Group API and terminate the function, and have another function where we receive the notification that the process is completed.
We are using ACI for Batch processing. In case a container fails or doesn't succeed in a certain amount of time (10 min) we want would like to receive a event grid notification.
Darran Shepherd commented
As other comments, used to offload longer running tasks that are not ideally suited to Azure Functions. EventGrid events on terminate or restart due to error would allow us to use logic apps / functions to respond to the completion of an event rather than having to couple the reporting / notification code into the data processing application running in the container.
Our use case is to spin up a container which runs a data processing job and receive a notification when complete. It seems better to use an event grid notification instead of contact polling.
Mark Heath commented
I want to use ACI for batch processing tasks (e.g. media transcoding). A container instance is spun up, used to perform a task, and when that task completes the container instance is torn down. If there are EventGrid notifications, Azure Functions can be used to manage the whole process.