It loops through each portal to get the portalid, you should be seing something in the scheduler history...
Public Overrides Sub DoWork()
Try
'notification that the event is progressing
Me.Progressing() 'OPTIONAL
CleanUpCarts()
'update the result to success since no exception was thrown
Me.ScheduleHistoryItem.Succeeded = True
Me.ScheduleHistoryItem.AddLogNote("Store Clean Up Carts Completed.")
Catch exc As Exception
Me.ScheduleHistoryItem.Succeeded = False
Me.ScheduleHistoryItem.AddLogNote("Store Clean Up Carts failed." + exc.ToString)
Me.ScheduleHistoryItem.Succeeded = False
'notification that we have errored
Me.Errored(exc)
'log the exception
LogException(exc)
End Try
End Sub
As you can see above it should always be writing something???...even if in error!