Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion SimpleScheduler/IJobInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Threading.Tasks;
using System;
using System.Threading.Tasks;

namespace SimpleScheduler
{
Expand All @@ -11,6 +12,8 @@ public interface IJobInfo
bool StopOnError { get; }
int RepetitionIntervalTime { get; }
string Schedule { get; }
DateTimeOffset LastRunAt { get; }
bool IsSelfExecute { get; }
Task InitializeSchedule();
}
}
4 changes: 4 additions & 0 deletions SimpleScheduler/JobInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ private TimeSchedule GetTimeSchedule()
};
}

public DateTimeOffset LastRunAt { get; private set; }

public bool IsSelfExecute { get; } = true; //TODO: create a pool for not self execute jobs (job without a loop to running itself)

private string JobType { get; }

private Type _objectType;
Expand Down