TDBF Posted September 3, 2023 Posted September 3, 2023 (edited) Hi, Is there any way to run Application Tasks at a specific time rather than every minute/hour/month/year after the application install/update date/time? I need to have an application run a task at 5pm once every day. Actually, it would be nice to be able to set specific run date/times rather than intervals. Also, another issue with tasks, when updating an Application, the task's last run times are reset to never. So, every time I update an application, everything is reset to the time I updated the application rather than a continuation when the Application was first installed. This to me is an annoyance rather than a bug, maybe? Edited September 3, 2023 by TDBF
Miss_B Posted September 3, 2023 Posted September 3, 2023 1 hour ago, TDBF said: Is there any way to run Application Tasks at a specific time rather than every minute/hour/month/year after the application install/update date/time? Not by default imo. That will require custom coding. TDBF 1
Nathan Explosion Posted September 3, 2023 Posted September 3, 2023 Here's what I would do based on the currently available functionality. Set the task to run every minute In your execute(), check if the time is 5pm If it is then proceed with the rest of the code If not, then do nothing. georgebkk and TDBF 2
Solution Martin A. Posted September 3, 2023 Solution Posted September 3, 2023 Unless this is a distributed application, not running in CiC, just make an executable file that you run with crontab at 5:00. TDBF 1
TDBF Posted September 3, 2023 Author Posted September 3, 2023 2 hours ago, Martin A. said: Unless this is a distributed application, not running in CiC, just make an executable file that you run with crontab at 5:00. This is what I ended up doing.
Recommended Posts