Runnining a scheduled routine

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Runnining a scheduled routine

Post by jmestep » Tue May 26, 2009 11:44 am

What is the best way to run some scheduled code once daily? In Able 5, there was code in the session header to do maintenance, but I can't find what triggers the routines in Able 7.
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: Runnining a scheduled routine

Post by nickc » Tue May 26, 2009 1:20 pm

Read viewtopic.php?f=42&t=9703. Looks like some work is pending around maintenance routines, but Logan gives an outline here about how roll your own automation.

BTW - Never thanked you for digging out API code around alternate SSL domain redirection - so thanks for that :). Wasn't what I needed, but my project is on hold for the time being.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Runnining a scheduled routine

Post by jmestep » Thu May 28, 2009 6:31 am

I've looked at that post and it seems that you have to have some kind of script on the server to run the routine? I would like to do it from within the website. I've put code on an admin page and earlier in the scriplet.master and the routine runs fine. I just don't want it running every time someone comes to the site, which I think it might do in the scriplet.master. I've created a class like the one in Able source code MaintenanceWorker.cs, but what triggers that to run? I would like to hook in to the same trigger if possible.
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply