21280 Posts in 5729 Topics by 2600 members
| Go to End | ||
| Author | Topic: | 5135 Views |
-
Re: Implementing a Scheduled Task

23 July 2012 at 3:27pm
Hello Friends
I have a question to ask you about the scheduling of task.
I have made a process to run daily..
for that i have create a folder in my root Cal\code\Controller\task
which is having the following code as u provided in the exampleclass MyTask extends DailyTask {
function process() {
Product::updatePrice();
}
}Can u tell me please as how can i test this in a browser manually as i am doing this in my localhost.
Any help is appreciated...
-
Re: Implementing a Scheduled Task

23 July 2012 at 6:28pm
Can u tell me please as how can i test this in a browser manually as i am doing this in my localhost.
You can't with DailyTasks. Though you can still run this through a terminal
sake /DailyTask
If you make you task a subclass of BuildTask you can run it both through the web and terminal
http://yoursite.dev/dev/tasks/YourTaskName
sake dev/tasks/YourTaskName
| 5135 Views | ||
| Go to Top |


