An Azure service that provides a general-purpose, serverless container platform.
Hello Shigeru Nakagaki,
You are correct—this behavior can seem counter-intuitive. In Durable Functions, the scale controller monitors only the orchestrator load and does not consider activity execution. Therefore, even if activities are still running, the application may be treated as idle and scaled down if no orchestrator is active. This is the intended platform behavior, not a bug.
Your workaround is effective: increasing the cooldownPeriod or setting a minimum replica will prevent the container from shutting down while activities are being retried. Alternatively, using the Premium plan fully resolves this, as orchestrations are always maintained.
Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.