I have a python script that runs once a day. It checks the database for certain criteria and sends a reminder email. Right now, it is in development so it only sends one email.
I added my own timestamps and logging and the script itself executes in less then a second. However, when run as a scheduled task on PA it usually takes > 30 seconds. Is this expected?
2021-09-18 04:00:48.312051 =====START=====
1 goals to process:
1,
===
Goal ID: 1
Goal has daily reminder; will send new reminder for this goal. Days difference=1.
Message sent!
EXECUTION TIME: 0 seconds.
2021-09-18 04:00:48.419765 =====END=====
2021-09-18 04:00:48 -- Completed task, took 30.69 seconds, return code was 0.