Skip to content
Snippets Groups Projects
Verified Commit 15922b10 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: setup scheduled jobs

parent 05459fc8
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,11 @@ class ScheduledJob {
long runtime = 0;
final Job job;
private long startTime = -1;
private final JobExecutionTime executionTime;
public ScheduledJob(final Job j) {
this.job = j;
this.executionTime = j.getExecutionTime();
}
public void run() {
......@@ -71,7 +73,7 @@ class ScheduledJob {
}
public JobExecutionTime getExecutionTime() {
return this.job.getExecutionTime();
return this.executionTime;
}
public boolean skip() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment