Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
40 views

How to create a custom annotation that do the task of @Schedule annotation in java conditionally

Previously I used @Schedule annotation to execute some methods according to some schedule for example, @Schedule(minute ="*/5", hour = "*", persistent = false, info = "Every 5 ...
Kavindu Nilshan's user avatar
1 vote
2 answers
52 views

RESTful trigger function

I have java restful service with a functionality that runs on a schedule. I want to implement a way to run that functionality on demand. what would be the proper/most effective way to achieve this?
ntruiz's user avatar
  • 43
0 votes
0 answers
47 views

Given an array of size n, find a way to arrange it such that no two side-by-side index pairs match for n-1 different arrays (team scheduling)

I have a simulator in Java in which I am trying to create a schedule of unique team matchups for a given sports league. In soccer, each team will play each other exactly ONCE with the first numTeams-1 ...
ap1kay's user avatar
  • 1
0 votes
0 answers
16 views

Running @Scheduled without waiting previous task to get completed [duplicate]

I am using @Scheduled with fixedRate. This job scans the db and put the data to second DB. So my question is, if my one task is running and have exceeded over 10 mins, the next task is waiting for ...
Prashant Aghara's user avatar
0 votes
0 answers
63 views

Conflict when using annotation @Scheduled and @Before in spring boot

I'm having a Component in spring boot like this : @Component public class A{} @Scheduled(cron = "0 * * * * ?") public void B{ ....... List<Database> databases = databaseServiceImpl....
Nghi Hoàng Đức's user avatar
0 votes
0 answers
78 views

Why is the next execution time of my Quartz trigger delayed by 8 hours?

As you can see, I am building a scheduled task scheduler using Spring Boot and Quartz. Here is the core logic for generating Job and Trigger: I have already included the Quartz Spring Boot dependency ...
liang li's user avatar
0 votes
0 answers
138 views

Configuration issues when generating schedule of flexible routines without overlapping other events, when optimizing on specific constraints

First of all, sorry for this long ass question, but I am trying to include all relevant facts for getting accurate help with my configuration. If yet I am missing something, I'm happy to clarify! I’m ...
Luca K's user avatar
  • 11
0 votes
1 answer
278 views

ejb timer (scheduler) does not trigger

i have two ejb schedulers inside a class running on a weblogic server. it works fine except in some rare occasions where one of them (the first timer) does not even trigger, while the other one is ...
Reza's user avatar
  • 113
0 votes
1 answer
398 views

Use arithmetic operations in a yaml

I'm using spring jobs in a Grails 5.2.5 application. This application serves to run X (defined by the reports.total configuration) reports at the same time. For correct operation, the spring.task....
João G. Hartmann's user avatar
0 votes
0 answers
159 views

How to config spring batch job run only 1 time when start application?

I created a Job using Spring Batch and use @Schedule to scheduling my job. But when I start my application, this Job will run outside @Schedule, it make 1 Job run twice time(in @Schedule and without @...
Hoàng Văn Lâm's user avatar
0 votes
2 answers
123 views

Schedule a method to refresh a TextArea that receives the result via ssh every x minutes [closed]

In order to realize a small supervisor of a server, I would like to know how to relaunch the ask(...) method in my code below. The goal is to query the server via SSH with the JSch library, and to ...
You's user avatar
  • 29
0 votes
1 answer
1k views

Spring boot application for some reaseon stoped working inside AWS EC2 instance

I have deployed a spring boot application to the AWS EC2 instance. And it works fine for some time. But after a day application just stopped working. I have used different types of EC2, from t2.micro ...
Mykola Shorobura's user avatar
0 votes
1 answer
1k views

spring boot calling method automatically at different times set by different users

I am trying to find a way to run a method at a specific time set by different users, let me explain! Let's suppose we have 2 sites: siteA and siteB and those sites have admins: adminA and adminB ...
Haithem Nasri's user avatar
0 votes
0 answers
178 views

ManagedScheduledExecutorService.schedule() in Quarkus

I am using ManagedScheduledExecutorService.schedule() function to schedule a function call in X seconds. Is there any way I can achieve this in Quarkus?
Hugo Vinhal's user avatar
1 vote
0 answers
438 views

How can scheduleAtFixedRate run with just 1 thread?

I created a schedule work with scheduleAtFixedRate, and the thread I set 2 ways to execute, 1、 Thread.sleep(10000); Thread.sleep(200); when I run this code, it will execute with a 2s delay, but ...
user18658416's user avatar

15 30 50 per page
1
2 3 4 5
13