Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jobs Support #526

Closed
kendallroden opened this issue Dec 13, 2022 · 22 comments
Closed

Jobs Support #526

kendallroden opened this issue Dec 13, 2022 · 22 comments
Assignees
Labels
enhancement New feature or request roadmap This feature is on the roadmap

Comments

@kendallroden
Copy link
Contributor

kendallroden commented Dec 13, 2022

GA 8/30/2023: https://azure.microsoft.com/en-us/updates/generally-available-azure-container-apps-jobs/
Docs: https://aka.ms/container-apps/jobs

In ACA, customers have no way of deploying containers that should terminate after completion. To run this type of workload, developers need to be able to deploy a specific resource type known as a Job. Jobs perform one or more tasks to completion and are finite resources unlike container app objects which continuously run until explicitly deleted.

Initial scope will include support for the following:

  • Manually triggered jobs
  • Jobs which run on a schedule
  • A subset of event-triggers supported by KEDA

Note: Additional due diligence may be required to ensure support for Azure Pipeline agents and/or Azure DevOps agents as part of this feature

Related requests:

@kendallroden kendallroden converted this from a draft issue Dec 13, 2022
@kendallroden kendallroden added the enhancement New feature or request label Dec 13, 2022
This was referenced Dec 13, 2022
@rvanmaanen
Copy link

#176 appears to be a similar request too

@HowardvanRooijen
Copy link

This would be excellent. I have a batch process (a data downloader / processor) that I would love to run via a CRON job. The current ACA / Dapr approach isn't really suitable, but this sounds like it would be an excellent fit.

@anthonychu anthonychu self-assigned this Jan 23, 2023
@SophCarp SophCarp changed the title Job Support Roadmap: Job Support Jan 30, 2023
@JonasCordsen
Copy link

Hello :)

Is there any ETA on this?

@SophCarp
Copy link

SophCarp commented Feb 1, 2023

@JonasCordsen Thanks for asking! I just updated the description, and we should have Jobs support out in public preview by the end of this quarter (end of March 2023).

@SophCarp SophCarp added the roadmap This feature is on the roadmap label Feb 1, 2023
@ManojNair
Copy link

This is awesome news. Thanks @SophCarp

@tmakowka-tc
Copy link

Is there any detail on what "subset of event-triggers supported by KEDA" means for the upcoming preview? ;)

@ronlhayes
Copy link

ronlhayes commented Feb 14, 2023

This is awesome! Just for clarification. I have a scaler using azure service bus but I need to allow the app to run up to 30 minutes. This would allow me to continue using an azure service bus trigger but also specify activeDeadlineSeconds (https://keda.sh/docs/2.9/concepts/scaling-jobs/) to handle the longer time limit right? The longer limit is rarely needed since most of the time 5 minutes or less is sufficient. If the app completes and exits in 5 minutes will the pod be removed (scaled down) or does the scaler wait activeDeadlineSeconds before testing and removing it?

@anthonychu
Copy link
Member

Updating ETA in original post to reflect latest status. Now targeting public preview in Q2 2023.

@ronlhayes
Copy link

Until this new feature is available is it possible to run long-running jobs as a static # of instances (no scaler). This link states that ACA supports long running/background tasks however when I run a single instance it gets killed every few minutes and then restarted. https://learn.microsoft.com/en-us/azure/container-apps/compare-options#azure-container-apps. Are there additional requirements such as health probes? This app uses an Azure Service Bus queue to perform processing that can take a few seconds or up to over 30 minutes to process so I can't have the container killed mid-process. Thanks in advance for the help!

@kjeske
Copy link

kjeske commented Mar 31, 2023

@ronlhayes what's your scaling rule and mix/max replicas?

@soerenfw
Copy link

We had a similar issues, that every few minutes the container gets killed and restarted. If you don't have health probes yet, I would suggest to enable them.

@ronlhayes
Copy link

ronlhayes commented Mar 31, 2023

@kjeske - I tried using no scaling rule with a single (min/max = 1) replica. Is there an automatic KEDA monitor such as cpu usage. This app is waiting for ASB messages so idle (not active) often for testing. Yes, I'll try adding health monitors. Curious what the assumption is when no health monitors are defined (assume ok, watch for app exiting)?

@torosent torosent changed the title Roadmap: Job Support Jobs Support Apr 8, 2023
@jaltin
Copy link

jaltin commented Apr 24, 2023

Updating ETA in original post to reflect latest status. Now targeting public preview in Q2 2023.

@anthonychu, is this still a realistic ETA for the preview? Do you have any more information on progress?

Thx!

@MatthewWilkes
Copy link

I just spotted "Container App Jobs (Preview)" in the portal, really looking forward to the next standup to hear the details on this!

@mburumaxwell
Copy link

Seen in docs too
https://learn.microsoft.com/en-us/azure/templates/microsoft.app/2022-11-01-preview/jobs?pivots=deployment-language-bicep

@olandese
Copy link

@torosent torosent moved this from In-Progress (Development) to Public Preview (Shipped and Improving) in Azure Container Apps Roadmap May 23, 2023
@denniszielke
Copy link

@anthonychu @vinisoto
Can we get environment variables inside each running job container populated similar to normal container apps like
CONTAINER_JOB_NAME=myjobName
CONTAINER_JOB_RUN_NAME=myjobName--7fbbb48d64-hghtz
This would help a lot to connect runs with process logic

@sebaguozden
Copy link

Is there an ETA to make this feature Generally Available?

@HowardvanRooijen
Copy link

This would be excellent. I have a batch process (a data downloader / processor) that I would love to run via a CRON job. The current ACA / Dapr approach isn't really suitable, but this sounds like it would be an excellent fit.

We ported one of our apps to use it last week and it's working brilliantly. Thanks very much 🔥

@TiloGit
Copy link

TiloGit commented Jul 26, 2023

Do jobs support Storage like plain Apps (Azure File)?

@torosent torosent moved this from Public Preview (Shipped and Improving) to Generally Available (Done) in Azure Container Apps Roadmap Aug 30, 2023
@SophCarp
Copy link

SophCarp commented Sep 5, 2023

@sebaguozden ACA Jobs is now GA: https://azure.microsoft.com/en-us/updates/generally-available-azure-container-apps-jobs/

@SophCarp SophCarp closed this as completed Sep 5, 2023
@github-project-automation github-project-automation bot moved this from Generally Available (Done) to In-Progress (Development) in Azure Container Apps Roadmap Sep 5, 2023
@SophCarp SophCarp moved this from In-Progress (Development) to Generally Available (Done) in Azure Container Apps Roadmap Sep 5, 2023
@ghost
Copy link

ghost commented Sep 12, 2023

we have tested azure container app jobs it works like a charm.
My Question is when scale set to zero. How does It assume the process has been completed and scale in the instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request roadmap This feature is on the roadmap
Projects
Status: Archive (GA older than 6 months)
Development

No branches or pull requests