Recurring tasks are disapeared (or are deleted) from DB table "scheduled_tasks" after executing. #408
Unanswered
ellalalaliu
asked this question in
Q&A
Replies: 1 comment
-
Is there any chance you have scheduler-instances using the same table but with different task-sets? This might happen then due to the
You might find traces of the following in your logs:
or
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Kagkarlsson and community,
I use the db-scheduler in a web application for executing 38 Recurring tasks.
All of tasks are "Static recurring task" and they are arranged by different schedule.
For Example:
@bean
RecurringTask weekDownloadAlarm(WeekDownloadAlarmJob myService) {
RecurringTask job = null;
}
All of the configuration options keep as default:
db-scheduler.enabled=true
db-scheduler.heartbeat-interval=5m
db-scheduler.polling-interval=10s
db-scheduler.polling-limit=
db-scheduler.table-name=scheduled_tasks
db-scheduler.immediate-execution-enabled=false
db-scheduler.scheduler-name=
db-scheduler.threads=10
db-scheduler.delay-startup-until-context-ready=false
db-scheduler.polling-strategy=fetch
db-scheduler.polling-strategy-lower-limit-fraction-of-threads=0.5
db-scheduler.polling-strategy-upper-limit-fraction-of-threads=3.0
db-scheduler.shutdown-max-wait=30m
The 38 Recurring tasks work well in the testing system environment.
However, there is a weird situation happening in the production environment.
Sometimes, some tasks are disappeared (or are deleted) from DB table "scheduled_tasks" after executing.
It is not fixed time and not fixed tasks so I have to check the DB table "scheduled_tasks" from time to time, in order to restart the web application.
The only difference between the testing and production system environment is the amount of data in the database.
I might need to adjust the configuration options for the production system environment. Could you give me advice or any other suggestion?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions