Override getJobInstanceCount in ResourcelessJobRepository

This commit is contained in:
Mahmoud Ben Hassine
2025-05-22 09:58:57 +02:00
parent 4c86f33da9
commit 880779458e

View File

@@ -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);