Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
[ ] I am running the latest version
[ ] I checked the documentation and found no answer
[ ] I checked to make sure that this issue has not already been filed
Expected Behavior
Hi!
i saw we cannot create recurring task at runtime but just wanted to be sure about onetimetask.
i am using db-scheduler to schedule multiple tasks when an external 3 requests is coming at the same time to run in multiple pods lets say, 3. when i create 3 beans with different name for scheduling it works fine but is there any functionality to create a Task at runtime dynamically i.e, applicationName-1, applicationName-2, applicationName-3. this would be helpful if i increase the number of pods in near future.
For this case i think multiple scheduler is getting created which is running the same name task in 2 different pods at the same time which is repeating the process.
For bug reports
YOU MAY DELETE THE For bug reports SECTION IF A NEW FEATURE REQUEST.
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Expected Behavior
Hi! i saw we cannot create recurring task at runtime but just wanted to be sure about onetimetask. i am using db-scheduler to schedule multiple tasks when an external 3 requests is coming at the same time to run in multiple pods lets say, 3. when i create 3 beans with different name for scheduling it works fine but is there any functionality to create a Task at runtime dynamically i.e, applicationName-1, applicationName-2, applicationName-3. this would be helpful if i increase the number of pods in near future.
@Value("${spring.application.name}") private String springAppName;
public void triggerOneTime(MyTaskData myClassData) { OneTimeTask myAdhocTask = Tasks.oneTime(springAppName+myClassData.getShard(), MyTaskData.class) // +myClassData.getShard() value can be 1, 2, 3 etc..
.execute((inst, ctx) -> {
System.out.println("Executed! Custom data, Id: " + inst.getData().id);
});
Current Behavior
For this case i think multiple scheduler is getting created which is running the same name task in 2 different pods at the same time which is repeating the process.
For bug reports
YOU MAY DELETE THE
For bug reports
SECTION IF A NEW FEATURE REQUEST.Steps to Reproduce the bug
1. 1. 1.
Context
Logs