All Questions
901
questions
0
votes
1
answer
55
views
Dynamically set SpringBoot CronJob Scheduler interval
I plan to use Spring Boot's @Scheduler annotation to run cron jobs for various tasks. Currently, the job simply prints 'Hello' every minute. I have a table detailing the cron jobs, with one column ...
0
votes
0
answers
41
views
want to scheduled cron job according to dynamic variable
I have method needs to run at specific date but date can be changed according to api response so
if I created a global variable like
private String cronJobRunAt;
and this value is changed or provided ...
0
votes
1
answer
45
views
I want to know the next cron expression start time using CronExpression.next. But it doesn't work as I expected
ZonedDateTime next = CronExpression.parse("0 0 1 ? * 1")
.next(new Date().toInstant().atZone(ZoneId.of("Asia/Seoul")));
System.out.println("next = " + next);
...
1
vote
0
answers
9k
views
How to make @Scheduled(cron=xxx) run normally when adjusting the server time to a point before the current time?
I have 23 methods annotated with @Scheduled, all of which use a cron expression. One day, I modified the server time to be several hours later and then changed it back. To my surprise, I found that ...
0
votes
0
answers
30
views
Crontab scheduler not able to run safari using selenium
I am trying to open safari browser using selenium, Also using crontab to schedule it.
when I run my code manually through code or terminal it works fine, but when I schedule it using crontab, it ...
0
votes
1
answer
61
views
CLASSPATH in crontab
I am having trouble getting my Java program to run from cron. I am able to recreate the problem, using a simple example, as explained below:
In the file /path/to/javaenv.txt I define my CLASSPATH ...
0
votes
1
answer
225
views
how to use intialDelay and cron job in schedule annotation
I want to create a time in Spring Boot which should start first at after 5 mins from java start (initialDelay) and from next time it should run at 5 AM of everyday
I am trying to use below code, but ...
0
votes
0
answers
26
views
Cron issue between every minute setup and specific time setup
In one program having testing cron we have different behaviour.
In both cases we run a log or sysout function.
First syntax is to run every minute:
@Scheduled (cron = "0 * * * * ?")
...
0
votes
1
answer
199
views
Spring random cron expression
I want to have a job executed each 1 hour.
I have 4 pods running in kubernetes and I'm using this expression: 0 0 */1 * * *
Current situation is that all pods execute the job the first minute of each ...
0
votes
0
answers
71
views
Is there any way to reload multiple cron job Task Schedular
So I have multiple cron jobs scheduled based on properties with Task Schedular, now I want to move those properties to DB. When any properties or job got update from UI , I will send DirectExchange ...
0
votes
0
answers
57
views
schedule a job everyday, everyhour using jil
I have to schedule a job that have to run every day every hour using jil script? Can I write
start_time:"00:00,01:00,02:00,03:00,04:00,05:00,06:00...,22:00,23:00"
Is the above format right?
0
votes
1
answer
378
views
Java Springboot Job Flow to execute two steps simultaneously
I want to write a Batch job which has steps (let's say A, B, C, D). The batch should execute in following way:
A
|
B and C
|
D
But current setup is: A -> B -> C -> D.
I want ...
0
votes
1
answer
137
views
How do I disable GCP App Engine Cron Jobs?
I have an old Java (Maven) App Engine application in GCP and want to disable the "App Engine Cron Jobs"
Changes to src/main/webapp/WEB-INF/cron.xml are ignored by the appengine-api-1.0-sdk (...
0
votes
0
answers
287
views
Should spring boot write to the quartz database table(s) (aka QRTZ_TRIGGERS) when using only @Scheduled(cron='?')?
I've configured quartz manually before, but I thought that this time around, i would try and utilize as much of the spring-boot (2.7.4) magic as I could.
(I also want to say, it's entirely possible I ...
1
vote
1
answer
167
views
What are the best practices for one time production updating database (data migration) from microservice (without manual action)? [closed]
Context : I added a new field to the database and now want to fill it with data.
I need to it once for entities, that were created before this change (now the value of this new field is null, ...