Not logged in - Login
< back

Use Case: Delayed Processing

If 2:00AM is the best time to run a heavy-process task, you can make A Trigger task to call your job URL everynight.


Solution Using A Trigger

Using A Trigger, time is not a problem at all. forget everything about time and just write your heavy-process code and make it accessible on a URL.

For example: http://example.com/admin/processUsers

task function on your url
pseudo:

*validateRequest
HEAVY JOB


Simplest way is to login to your A Trigger panel and create a task using the GUI. Also it's possible using API.

pseudo:

tag("type") = "process"

ATrigger.doCreate("1day", "http://example.com/admin/processUsers", tags, -1, "2013-08-26T02:00:00Z");

Each day for infinite times!