Copied to clipboard

Flag this post as spam?

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


  • David 13 posts 33 karma points
    Oct 04, 2013 @ 16:39
    David
    0

    Date and time functionality

    How does the Publish On date and Remove At date work in Umbraco.

    I would like to have similar functionality with starting and stopping an auction item, basically I want to have a state on a document that is altered automatically similar to how the publish dates work.

  • Dallas 133 posts 405 karma points
    Oct 04, 2013 @ 18:11
    Dallas
    0

    Out of the box Umbraco does have a feature to schedule a task. The task is configured in UmbracoSettings.config. You provide a url ( to a handler for example ) and duration and a request will be made to your handler.

    As it this functionality runs within the site, if the app pool stops the scheduled task will not be executed. 

    There is also a package called TaskScheduler that lets you schedule requests in a similar fashion. It can be configured through the backoffice and has more granular scheduling options. However I would suspect it suffers from the same issue that the app pool must be running. One solution to this problem is regularly pinging the site to ensure it is always running.

    Another option would be to develop a console app ( and use the Windows scheduler ) or a Windows Service that checks the status and starts and stops the auction. 

Please Sign in or register to post replies

Write your reply to:

Draft