PagerDuty / scheduler

A Scala library for scheduling arbitrary code to run at an arbitrary time.
BSD 3-Clause "New" or "Revised" License
214 stars 38 forks source link

SchedulerClient says Task enqueuing success but "TaskSchedule" Table not getting added #40

Open kumar-asista opened 6 years ago

kumar-asista commented 6 years ago

I'm facing issue related data loss ,

Scheduler was working initial start time , if scheduler not used long time after some time when I try to schedule task that task not getting added in "TaskSchedule" table, but in log I can able to see schedule task enqueuing scueessfuly, if I restart application it getting added to "TaskSchedule"

Logs=>

2018-11-29 19:16:21 INFO Scheduler$ {com.pagerduty.scheduler.LoggingSupport$$anonfun$reportFutureResults$1 apply} - Attempting: sending tasks to scheduler: List(TaskKey(2018-11-29T14:19:33.325Z,de2283d8-d279-4abf-9454-138729d094d1,79ea6593-06f9-47a4-8dba-de0fcce76610)) 2018-11-29 19:16:21 INFO SchedulerClient {com.pagerduty.scheduler.LoggingSupport$$anonfun$reportFutureResults$2$$anonfun$apply$1 apply} - Succeeded: enqueuing task to Kafka: TaskKey(2018-11-29T14:19:33.325Z,de2283d8-d279-4abf-9454-138729d094d1,79ea6593-06f9-47a4-8dba-de0fcce76610).

Any configuration I want to take care about this kind of issues,

thanks