Managing Event Scaled Container App Jobs

Dev S 41 Reputation points
2024-06-28T14:15:50.9433333+00:00

When using Event Scaled Container App Jobs, for example, Jobs which start when something appears in an Azure Storage Queue, is there any way to use an API to know whether a particular job failed or succeeded?

I see that job instances have random suffixes to their names, but there doesn't seem to be a way to identify the status of a job associated with a particular message in the queue? Can we somehow tag the job instances with something like an ID?

Thanks.

/Dev

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
444 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,921 Reputation points
    2024-07-02T05:47:00.0533333+00:00

    @Dev S Thanks for your patience! Since Event Scaled Container App Jobs are dynamically created and scaled based on the trigger, the job names are randomly generated and cannot be used to identify a specific job instance.

    To know whether job failed/succeeded, or if a job is associated with a message in queue, you can write custom logs that include information about the job instance, such as its ID and status as per your requirement

    do let me know incase of further queries, I would be happy to assist you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.