Jump to content

Featured Replies

Posted

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 by TDBF

Solved by Martin A.

Go to solution
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.

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.

 

  • Solution

Unless this is a distributed application, not running in CiC, just make an executable file that you run with crontab at 5:00. 

  • 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.

Recently Browsing 0

  • No registered users viewing this page.