I'm trying to figure out what the easiest way of running a "one time job" on Azure Container Apps is.
我正试图弄清楚在Azure容器应用程序上运行“一次性作业”的最简单方法是什么。
I know that it can be done with Azure Container Instances or Azure Kubernetes Service, but is there something similar for ACA?
我知道它可以用Azure容器实例或Azure Kubernetes服务来完成,但ACA有类似的东西吗?
Ideally, I'm looking for some kind of cli command like az containerapps run --image <some-image>
that can run in an environment and is cleaned up when it has finished running.
理想情况下,我正在寻找某种cli命令,如az containerapps run--image<some image>,它可以在环境中运行,并在运行完成后进行清理。
Is that possible?
这可能吗?
更多回答
Thanks @Thomas, but that's not really what I was looking for. I got an answer from the ACA team. They are working on "jobs" which will solve this. github.com/microsoft/azure-container-apps/issues/446
谢谢@Thomas,但这不是我真正想要的。我得到了ACA团队的答复。他们正在从事“工作”,这将解决这个问题。github.com/microsoft/azure-container-apps/sissues/446
优秀答案推荐
You can now run Jobs in Azure Container Apps
您现在可以在Azure容器应用程序中运行作业
You have different type of triggers available:
您有不同类型的触发器可用:
- Manual jobs triggered on-demand using cli, ARM/Bicep or from the portal
- Scheduled jobs triggered based on a CRON expression.
- Event-driven jobs triggered using KEDA scalers.
更多回答
我是一名优秀的程序员,十分优秀!