denielchiang / line_reminder

Reminder using LINE Notify
1 stars 0 forks source link

Uniqueness quantum job without supervisor changes #20

Closed denielchiang closed 1 year ago

denielchiang commented 1 year ago

Ref. #14 , wonder if Quantum Strategy: Random node can also make sure the uniqueness of cron job. Since I've be proven that my cluster deployment on Fly.io were not correct.

Since the cluster configuration still require libcluster, we'll keep that. And try not to use the highlander to see if still be single one node got executed.

denielchiang commented 1 year ago
2023-07-10T00:05:00.089 app[178113d4f5e189] sin [info] 00:05:00.089 [info] Today has no more topic to send

2023-07-10T00:05:00.214 app[178113d4f5e189] sin [info] 00:05:00.214 [info] Today has no more topic to send

2023-07-10T00:10:00.086 app[4d8917e0f54387] sin [info] 00:10:00.085 [info] Today has no more topic to send

2023-07-10T00:10:00.216 app[178113d4f5e189] sin [info] 00:10:00.216 [info] Today has no more topic to send

2023-07-10T00:15:00.087 app[178113d4f5e189] sin [info] 00:15:00.087 [info] Today has no more topic to send

2023-07-10T00:15:00.214 app[178113d4f5e189] sin [info] 00:15:00.214 [info] Today has no more topic to send

2023-07-10T00:20:00.088 app[178113d4f5e189] sin [info] 00:20:00.088 [info] Today has no more topic to send

2023-07-10T00:20:00.217 app[4d8917e0f54387] sin [info] 00:20:00.217 [info] Today has no more topic to send

2023-07-10T00:25:00.088 app[178113d4f5e189] sin [info] 00:25:00.088 [info] Today has no more topic to send

2023-07-10T00:25:00.217 app[4d8917e0f54387] sin [info] 00:25:00.216 [info] Today has no more topic to send

2023-07-10T00:30:00.084 app[4d8917e0f54387] sin [info] 00:30:00.084 [info] Today has no more topic to send

2023-07-10T00:30:00.216 app[4d8917e0f54387] sin [info] 00:30:00.216 [info] Today has no more topic to send

The testing was scheduled every 5 mins. And as you can see it didn't work on uniqueness quantum job without highlander.