Anybody have any idea? How to use Scheduling?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/29/2012 11:51:36 PM
Gravatar
Total Posts 8

Anybody have any idea? How to use Scheduling?

Hello people, 

  Anybody has any idea how to use scheduling? Whereby if my server is on but my browser is off and they will auto update/collect data. I've try using javascript for timer to update/collect the data but (thats when the browser is on). Is there anyway to update/collect data when my browser is off while my server is running? I'm currently using MSSQL

10/1/2012 11:53:35 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Anybody have any idea? How to use Scheduling?

Well, depending on what you need to do, you could use SQL Server Agent to schedule operations and T-SQL procedures within the database itself. You could also use the Windows Task Scheduler on the host to run batch or PowerShell jobs, if you are in a VPS or dedicated server environment. Hosted environments might also offer some sort of scheduler, but I'm not really familiar with that.

I wouldn't recommend scheduling time-critical processes within mojoPortal custom code, because there is no guarantee that the web server will be up and running at any given time (hence the need for a keep-alive solution for low-volume sites). But if timing is not critical, and you have the ability to do your own development (or contract for it), you might also leverage the Task Framework in mojoPortal to set up a long-running job that can be resumed, and does something at defined intervals. For instance, if you are confident that someone is signing into your site pretty much every day, a User Sign In Event Handler could check for the presence of a running job, and if not, schedule a new one to last for 24 hours. That's just an example idea.

Hope that helps,

Jamie

 

You must sign in to post in the forums. This thread is closed to new posts.