Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 3, 20231 yr 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, 20231 yr by TDBF
September 3, 20231 yr 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.
September 3, 20231 yr 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.
September 3, 20231 yr Solution Unless this is a distributed application, not running in CiC, just make an executable file that you run with crontab at 5:00.
September 3, 20231 yr Author 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.