in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Scheduled tasks in DNP

Last post 11-19-2009 6:43 AM by prostoemailee. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-12-2009 1:18 AM

    Scheduled tasks in DNP

    Hi,

    When i create a scheduled task in dotnetpanel it does not seem to stick to its schedule

    For example: I Login to DNP select my customer then scheduled tasks, create a backup database task, schedule task for 8:00am daily. The task runs the next day at 8:00am, however days after the task does not run.. If i login to DNP a couple of days later (say 5 days for example) the task will run immediately after i login.

    It appears that tasks only run on schedule if I login to dotnetpanel daily.

    Please advise how I can correct this.

    using version 2.8.9

  • 11-15-2009 9:22 PM In reply to

    Re: Scheduled tasks in DNP

    I think I have the same problem with my AWStats update schedule task. Sometimes it runs, sometimes not. Don't know why...

    The funniest thing is that Audit Log reports that task was completed successfully, but AWStats last update time shows that db was not updated.

    DNP v2.8.9.

     

    BTW, tasks with priority Low still run as Normal.

    http://forum.dotnetpanel.com/forums/t/5377.aspx

    Regards,
    Jegor.
    Filed under:
  • 11-19-2009 3:00 AM In reply to

    Re: Scheduled tasks in DNP

    Interesting, i run the AWStats update as a windows schedule task, as i just can't afford to rely on the scheduled tasks in DNP particularly if there not running on schedule.

    Have you tried running the UpdateStats.bat batch file in a command prompt to check for errors? if the task is completing successfully, there may be sites records being dropped so nothing new appears in awstats..

    In addition to my problem i checked the audit log and found this error today on the scheduled task mentioned above:

    Error executing scheduled task
    Item has already been added. Key in dictionary: 'SqlDatabase' Key being added: 'SqlDatabase'
    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at DotNetPanel.EnterpriseServer.ObjectUtils.CreateObjectFromHash(Object obj, Hashtable propValues, Boolean persistentOnly)
    at DotNetPanel.EnterpriseServer.ObjectUtils.CreateObjectFromHash(Type type, Hashtable propValues, Boolean persistentOnly)
    at DotNetPanel.EnterpriseServer.ObjectUtils.CreateObjectFromDataview(Type type, DataView dv, String nameColumn, String valueColumn, Boolean persistentOnly)
    at DotNetPanel.EnterpriseServer.PackageController.CreateServiceItem(DataRowView drItem, DataView dvProps)
    at DotNetPanel.EnterpriseServer.PackageController.GetPackageItemByName(Int32 packageId, String groupName, String itemName, Type itemType)
    at DotNetPanel.EnterpriseServer.BackupDatabaseTask.DoWork()
    at DotNetPanel.EnterpriseServer.SchedulerJob.RunSchedule()
     
     
    I can't tell if it's related to the schedule tasks not running on time but its an unforced error nonetheless
    DNP HELP US!
  • 11-19-2009 6:43 AM In reply to

    Re: Scheduled tasks in DNP

    Thanks nathard!

    I run AWStats update manually and it always works fine.

    I'm sorry, but I cannot help you with your problem. Sad

    Regards,
    Jegor.
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems