I have built an umbraco website that incorporates membership and i would really like to monitor how long a user has been a member of the website for.
I would like to build some kind of notification to alert administrators when a member has been registered for 12 months. then repeat this for every 12 months they are with the website
You would need to write your own scheduled task run it on daily basis go through members look at create date. I would use examine and search on member index as it will be much much quicker than api / db calls. You could create it as console app and use windows scheduler to run.
There is one in the core however if site is inactive then the scheduler can get out of time as it runs under the website and if website is inactive then scheduler will be in active.
pingdom.. you can't guarantee that all nodes in a clustered cloud environment would get hit.. hence why we try to use the inbuilt scheduler as you know that's going to run in the context of the site on every instance :-)
Umbraco Membership duration monitoring?
Hi guys,
I have built an umbraco website that incorporates membership and i would really like to monitor how long a user has been a member of the website for.
I would like to build some kind of notification to alert administrators when a member has been registered for 12 months. then repeat this for every 12 months they are with the website
Is this achievable in umbraco?
Thanks
Paul
Paul,
You would need to write your own scheduled task run it on daily basis go through members look at create date. I would use examine and search on member index as it will be much much quicker than api / db calls. You could create it as console app and use windows scheduler to run.
Regards
Ismail
Paul,
Just found this morning http://dotnetscheduler.com/engine/ its an opensource scheduler library and an old one http://www.quartz-scheduler.net/
Regards
Ismail
Hi Ismail
Thanks for your response mate I will check out the links that you have kindly provided and take your advice on board :)
Cheers
Paul
http://our.umbraco.org/wiki/how-tos/run-the-scheduler-at-certain-times
Is there a reason why you advocate a 3rd party scheduler and not the one in the core?
Mike,
There is one in the core however if site is inactive then the scheduler can get out of time as it runs under the website and if website is inactive then scheduler will be in active.
Regards
Ismail
Guess it depends if you have access to a dedicated server to be able to install the 3rdparty on?
Can't you just add a second scheduled taks to ping at intervals less than the app pool recycle time out, to keep the site alive?
Mike,
Yup summat like pingdom.
Regards
Ismail
pingdom.. you can't guarantee that all nodes in a clustered cloud environment would get hit.. hence why we try to use the inbuilt scheduler as you know that's going to run in the context of the site on every instance :-)
Cheers both ;)
Paul
is working on a reply...