Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SchedulerScheduler
Previous
 
Next
New Post
1/27/2006 10:31 AM
 

Putting my first scheduler task together...compiled the DLL, moved it to the bin directory.  This DLL really does nothing and is just the 'shell' as defined in the Wrox press book.  I just want to write a history record, but it just sits, queued, the entire time and even goes overdue in the queue, but nothing else is running.  I hope I'm just new to this and it is something very obvious.

My questions are there any ideas on why? 

Are there any ideas as to how to better troubleshoot this type of thing?

Are there other sites/info strictly about scheduling?

I even tried putting in an example I found on ASP.NET forums.

Here is the code:

Imports System.Threading

Namespace ToDo

Public Class ATask

Inherits DotNetNuke.Services.Scheduling.SchedulerClient

Public Sub New(ByVal objScheduleHistoryItem As DotNetNuke.Services.Scheduling.ScheduleHistoryItem)

MyBase.new()

Me.ScheduleHistoryItem = objScheduleHistoryItem

End Sub

Public Overrides Sub DoWork()

Try

'notification that the event is progressing

Me.Progressing() 'OPTIONAL

DoTask()

Me.ScheduleHistoryItem.Succeeded = True 'REQUIRED

Me.ScheduleHistoryItem.AddLogNote("A scheduled task has run") 'OPTIONAL

Catch exc As Exception 'REQUIRED

Me.ScheduleHistoryItem.Succeeded = False 'REQUIRED

Me.ScheduleHistoryItem.AddLogNote("A scheduled task has failed. " + exc.ToString) 'OPTIONAL

'notification that we have errored

Me.Errored(exc) 'REQUIRED

'log the exception

'LogException(exc) 'OPTIONAL

End Try

End Sub

Private Sub DoTask()

' intentionally left blank

End Sub

End Class

End Namespace\

 

Then, the setup in the schedule

Full Class Name:  DNNScheduledTask.ToDo.ATask, DNNScheduledTask

Schedule enabled:  Yes

Time Lapse 1 minute

Retry: none

Run on event:  None

Catch up enabled:   No

Object Dependencies:  <empty>

Run on Servers: <empty>

 

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SchedulerScheduler


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out