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:

https://api.atrigger.com/v1/tasks/create?key=YOUR_API_KEY&secret=YOUR_API_SECRET&timeSlice=1day&url=http%3A%2F%2Fexample.com%2Fadmin%2FprocessUsers&first=2013-08-26T02:00:00Z&count=1

The first call will be the next month from this moment.