Copied to clipboard

Flag this post as spam?

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


  • Gerjan 19 posts 78 karma points
    Apr 29, 2015 @ 13:40
    Gerjan
    0

    Run every x-minutes

    Hi Antoine, great work!

    How could I get the scheduler to run every 1-5 minutes? This highest frequency is hourly in the module.

    Gerjan

  • Antoine 176 posts 1494 karma points
    Apr 29, 2015 @ 14:16
    Antoine
    100

    Thanks Gerjan, 

    This feature doesn't come in the current uMirror version. But it will be very easy to implement I think.

    You can create your own .ashx file and call it every 1-5 minutes using the native Umbraco task Scheduled.

    The will look like

    Synchronizer sync = new Synchronizer();
    sync.context = HttpContext.Current;
    sync.projectid = {your project id};
    sync.currentUser = umbraco.BusinessLogic.User.GetCurrent();
    sync.start();
    ...

    check Ui/Scheduler/ScheduledTaskHandler.ashx.cs in github, it will help you

  • Gerjan 19 posts 78 karma points
    Apr 29, 2015 @ 14:42
    Gerjan
    0

    Thanks, I will give it a shot.

Please Sign in or register to post replies

Write your reply to:

Draft