Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Feb 9, 2023
2 parents d620067 + cf7efc6 commit 8f390cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Job.Scheduler/Job/Runner/JobRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal abstract class JobRunner<TJob> : IJobRunner where TJob : IJob
private static readonly ActivitySource _activitySource = new("Job.Scheduler::Runner");

public Guid UniqueId { get; } = Guid.NewGuid();
public bool IsRunning => _cancellationTokenSource is { IsCancellationRequested: false };
public bool IsRunning => _cancellationTokenSource is { IsCancellationRequested: false } && _runningTaskWithDone is not null;
public TimeSpan Elapsed => _stopwatch.Elapsed;
public int Retries { get; private set; }

Expand Down

0 comments on commit 8f390cf

Please sign in to comment.