Copied to clipboard

Flag this post as spam?

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


  • Nami Nasserazad 23 posts 43 karma points
    Feb 24, 2011 @ 10:34
    Nami Nasserazad
    0

    Scheduled Task

    Hi

    I would like to add a scheduled task in umbraco using "scheduled tasks" section in umbracosetting.config. How can I set start time for that. For example, I like to call indexing daily at 3:00 AM?

    Regards,

    Nami

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Feb 24, 2011 @ 11:24
    Sebastiaan Janssen
    0

    You can't do that in the config file, but make sure to check the TaskScheduler package.

  • Nadine Fisch 159 posts 429 karma points
    Jul 27, 2018 @ 09:27
    Nadine Fisch
    0

    is there currently a better solution ? I am using Umbraco version 7.3.0. This package seems not tested very well. Thank you for your input

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jul 27, 2018 @ 09:37
    Sebastiaan Janssen
    1

    uCronos might be what you need: https://our.umbraco.com/projects/backoffice-extensions/ucronos/

    This is based something called Hangfire, which I LOVE.

    If uCronos doesn't work for you, you could go for some custom code and use Hangfire directly: http://camaya.co/posts/2016/07/31/how-to-integrate-hangfire-with-umbraco/

  • Nadine Fisch 159 posts 429 karma points
    Jul 27, 2018 @ 11:24
    Nadine Fisch
    0

    I reveceive this error message

    Could not load file or assembly 'Microsoft.Owin, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    

    I downloaded Microsoft.Owin.dll, but I get the next error.

    System.Reflection.ReflectionTypeLoadException: Could not load types from assembly uCronos, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, errors:
    

    Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5750.18155, Culture=neutral, PublicKeyToken=null'. Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5750.18155, Culture=neutral, PublicKeyToken=null'.

  • Nadine Fisch 159 posts 429 karma points
    Jul 27, 2018 @ 13:22
    Nadine Fisch
    0

    It seems to be a jinx on it.

    I tried to use the TaskScheduler package. The installation went fine and everything is stored fine in the database. But I dont get any emails :( (my task sends emails) I also checked the servertime and the umbracoSettings.config.

    The tasks are defined in the scheduledTasks section, but I don't get any emails. In the logs I see following output

    2018-07-27 13:18:56,674 [P8584/D19/T7] INFO  Umbraco.Web.Scheduling.ScheduledTasks - Task1 has been called with response: False
    

    If I call the API Url manually, I directly get my email. Any suggestions?

  • Nadine Fisch 159 posts 429 karma points
    Sep 05, 2018 @ 07:35
    Nadine Fisch
    0

    It seems to be a DMARC-policy problem, why I don't receive any emails

Please Sign in or register to post replies

Write your reply to:

Draft