When a new instance of your scheduled job is triggered while a previous one is still running, the outcome depends on your Azure Container Apps Job configuration.
Default Behavior – Runs in Parallel
By default, Azure Container Apps Jobs allow multiple instances to run simultaneously. So if your job starts at 11:00 AM and is still running when the next one is triggered at 11:05 AM, both will run in parallel unless limits are set.
Preventing Overlapping Jobs (Controlling Concurrency)
To ensure a new job doesn’t start before the previous one finishes, you have two options:
- Set maxConcurrentJobs = 1
- This ensures only one job runs at a time.
- If a previous job is still running, the new one will be queued until it’s done.
- Use a Singleton Job Type
- With Azure Container Apps Jobs, configure the job type as "singleton" to ensure only one instance runs at any given time.
- This ensures only one job runs at a time.
For more details, check the official Microsoft documentation: https://learn.microsoft.com/en-us/azure/container-apps/jobs?tabs=azure-cli#scheduled-jobs
Summary
-->By default, jobs run in parallel.
--> You can limit concurrency so only one job runs at a time.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.