Skip to content

Commit fdcc144

Browse files
committed
Add description to job status
1 parent 7fdad85 commit fdcc144

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Foundatio.Extensions.Hosting/Jobs/JobManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public JobStatus[] GetJobStatus(bool runningOnly = false, bool includeHistory =
159159
return Jobs.Where(j => j.Running).Select(j => new JobStatus
160160
{
161161
Name = j.Options.Name,
162+
Description = j.Options.Description,
162163
Schedule = j.Options.CronSchedule,
163164
Running = j.Running,
164165
Enabled = j.Options.IsEnabled,
@@ -172,6 +173,7 @@ public JobStatus[] GetJobStatus(bool runningOnly = false, bool includeHistory =
172173
return Jobs.Select(j => new JobStatus
173174
{
174175
Name = j.Options.Name,
176+
Description = j.Options.Description,
175177
Schedule = j.Options.CronSchedule,
176178
Running = j.Running,
177179
Enabled = j.Options.IsEnabled,
@@ -222,6 +224,7 @@ internal ScheduledJobInstance GetJob(string jobName)
222224
public class JobStatus
223225
{
224226
public string Name { get; set; }
227+
public string Description { get; set;}
225228
public bool Running { get; set; }
226229
public bool Enabled { get; set; }
227230
public bool Distributed { get; set; }

0 commit comments

Comments
 (0)