Issue:
After a (continuous, "Always On" feature is enabled for App Service) webjob is deployed (to webapp on Linux plan) it works for a random number of days (sometimes 2-3 days, sometimes even 1 week) and after that it partially (what "partially" means see in description) fails and can't be restored without redeploy.
Full description:
I am happy to provide more details if needed, but it looks like a bug specifically when deploying to Linux plan.
Short log from Kudu:
[06/16/2025 00:40:47 > 985515: SYS INFO] WebJob is still running
[06/16/2025 09:19:21 > 985515: SYS INFO] Status changed to Starting
[06/16/2025 09:19:22 > 985515: SYS INFO] WebJob singleton setting is True
[06/16/2025 09:19:26 > 985515: SYS INFO] Status changed to InactiveInstance
Below is also a screenshot of an api call from the MS docs to get webjob info for my Subscription and site - 504 as a result.
Thank you all!
Although the "Always On" feature is available in the Linux Basic tier, its behavior is unpredictable for continuous WebJobs. Unlike Windows, Linux App Service Plans do not officially support continuous WebJobs, and background tasks may stop running due to app unloading during idle time, even with "Always On" enabled.
Since you're using a continuous WebJob on a Linux App Service Plan, it needs "Always On" to run reliably. Without it, the job may stop or behave unpredictably due to the app being unloaded during idle time.
Please refer this Msdoc to know more about the WebJobs.
To resolve the issue,
Windows Basic tier
(for testing or low-traffic apps).Linux Standard tier or higher
.Azure Functions (Consumption or Premium Plan)
for running background tasks, which can be more cost-efficient and event-driven.Refer this Msdoc to know about Azure App Service Plans Tiers and Features.