Override getJobInstanceCount in ResourcelessJobRepository
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2024 the original author or authors.
|
||||
* Copyright 2024-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -54,6 +54,11 @@ public class ResourcelessJobRepository implements JobRepository {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getJobInstanceCount(String jobName) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JobInstance createJobInstance(String jobName, JobParameters jobParameters) {
|
||||
this.jobInstance = new JobInstance(1L, jobName);
|
||||
|
||||
Reference in New Issue
Block a user