It seems you are experiencing issues with your Azure Function's timer trigger not executing as expected. Here are a few things to check:
- Schedule Format: Ensure that the CRON expression you are using (
0 0 23 * * 2) is correct and aligns with the expected format for Azure Functions. This expression should trigger at 11 PM UTC on Tuesdays. - Function App Configuration: Make sure that your function app is properly configured to use the v2 programming model. The Python v2 programming model is only supported in the 4.x functions runtime, so ensure that your function app is running on the correct version.
- Monitoring: Since you have set
use_monitor=False, consider setting it toTrueto enable monitoring of the schedule. This can help you diagnose if the function is being triggered but failing to execute properly. - Logs and Errors: Check the logs for any errors or warnings that might indicate why the timer trigger is not firing. Look for any issues related to the timer trigger in the Azure portal.
- Run on Startup: If you want the function to trigger immediately when the function app starts, you can set
run_on_startup=True. This will help you verify if the function is set up correctly.
If you've checked all of these and the issue persists, consider reviewing the troubleshooting documentation for Python functions in Azure Functions for additional insights.
References: