You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set up continuation of my job, I'd expect JobStorage.Current.GetMonitoringApi().JobDetails.History to contain a state where the job is "Succeeded" (in happy path). However, it randomly happens that the latest entry there is "Processing".
Is it expected?
Here's simplified version of my code:
varstate=new EnqueuedState("my-queue");varjobId= client.Create<MyJob>(job => job.Run(cancellationToken),
state
);
client.ContinueJobWith(
jobId,()=> DoSomething(jobId),
state
);publicasync Task DoSomething(stingjobId){varjobDetails= JobStorage.Current.GetMonitoringApi().JobDetails(jobId);varlastJobState= jobDetails.History.OrderByDescending(state => state.CreatedAt).First();
_logger.log(lastJobState.StateName);// logs "Processing" for some jobs}
If I'm doing something wrong, what's the proper way to get the job's state and timestamp of its finished execution?
The text was updated successfully, but these errors were encountered:
When I set up continuation of my job, I'd expect
JobStorage.Current.GetMonitoringApi().JobDetails.History
to contain a state where the job is "Succeeded" (in happy path). However, it randomly happens that the latest entry there is "Processing".Is it expected?
Here's simplified version of my code:
If I'm doing something wrong, what's the proper way to get the job's state and timestamp of its finished execution?
The text was updated successfully, but these errors were encountered: