Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Griffiths 370 posts 1021 karma points
    Mar 08, 2014 @ 09:27
    Paul Griffiths
    0

    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

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 10, 2014 @ 10:22
    Ismail Mayat
    0

    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

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 10, 2014 @ 10:34
    Ismail Mayat
    0

    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

  • Paul Griffiths 370 posts 1021 karma points
    Mar 10, 2014 @ 12:27
    Paul Griffiths
    0

    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

  • Mike Chambers 636 posts 1253 karma points c-trib
    Mar 11, 2014 @ 11:00
    Mike Chambers
    0

    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?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 11, 2014 @ 11:05
    Ismail Mayat
    0

    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

  • Mike Chambers 636 posts 1253 karma points c-trib
    Mar 11, 2014 @ 17:07
    Mike Chambers
    0

    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?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 11, 2014 @ 17:19
    Ismail Mayat
    0

    Mike,

    Yup summat like pingdom.

    Regards

    Ismail

  • Mike Chambers 636 posts 1253 karma points c-trib
    Mar 11, 2014 @ 17:24
    Mike Chambers
    0

    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 :-)

  • Paul Griffiths 370 posts 1021 karma points
    Mar 11, 2014 @ 19:52
    Paul Griffiths
    0

    Cheers both ;)

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft