An Azure NoSQL database service for app development.
Hi @Craig Webb
The most interesting detail in your troubleshooting is that the lease continuation token and timestamp continue to advance when new documents are inserted. This indicates that the Cosmos DB Change Feed Processor is successfully reading changes from the container and updating the lease state.
Because of that, the issue is less likely to be with Cosmos DB itself and more likely related to the Azure Functions runtime, Cosmos DB trigger extension, or the Python worker process.
A few details would help narrow this down:
- Azure Functions runtime version
- Extension bundle version (or Cosmos DB extension version)
- Contents of your
host.json - Confirmation that the Cosmos DB account is using the SQL (Core) API and Serverless mode
- Any host restart, recycle, or scale events visible in Application Insights
Since you're running on a Flex Consumption plan, I'd also recommend checking Application Insights for worker restarts or host lifecycle events occurring after the first successful trigger execution.
The continuation token advancing is the key diagnostic clue here—it confirms that Cosmos DB is generating change feed events and that the trigger infrastructure is consuming them. The next step is determining why those events are not consistently reaching the Python function after the initial invocation.
Could you share the runtime/extension versions and your host.json configuration?