16-12-2022
This commit is contained in:
@@ -14,10 +14,10 @@ Public Class RunJob
|
||||
Scheduler = pScheduler
|
||||
End Sub
|
||||
|
||||
Public Async Function Run(pData As RunJobRequest) As Task(Of RunJobResponse)
|
||||
Public Function Run(pData As RunJobRequest) As RunJobResponse
|
||||
' This is calling the async function ScheduleJob synchronous, so that we can return a value to the caller
|
||||
' This means that the job might or might not be scheduled when this method returns.
|
||||
Task.Run(Function() Scheduler.ScheduleJob(pData.JobId))
|
||||
Scheduler.ScheduleJob(pData.JobId)
|
||||
|
||||
Return New RunJobResponse()
|
||||
End Function
|
||||
|
||||
Reference in New Issue
Block a user