英文:
Does chronicle queue have problems rolling daily if I skip weekends?
问题
I have a process that runs at 1 am and is stopped at 11 pm everyday using crontab. This creates a chronicle queue file everyday, and because cleaning up is tedious, I changed the crontab to only run on weekdays on Apr 14. Today Apr 17, I checked the files and I found:
For some reason, today it created a file for yesterday Apr 16, and then rolled over again for Apr 17? I'm not using anything different for creating a queue.
QUEUE = SingleChronicleQueueBuilder.single(prop.getProperty("CHRONICLE_PATH"))
.rollCycle(RollCycles.FAST_DAILY).build();
edit: I just came in this week (24th April) and found this.
英文:
I have a process that runs at 1 am and is stopped at 11pm everyday using crontab. This creates a chronicle queue file everyday, and because cleaning up is tedious, I changed the crontab to only run on weekdays on Apr 14. Today Apr 17, I checked the files and I found:
For some reason, today it created a file for yesterday Apr 16, and then rolled over again for Apr 17? I m not using anything different for creating a queue.
QUEUE = SingleChronicleQueueBuilder.single(prop.getProperty("CHRONICLE_PATH"))
.rollCycle(RollCycles.FAST_DAILY).build();
edit: I just came in this week (24th April) and found this.
答案1
得分: 2
你似乎有一些关于16号的数据。默认时区是GMT,所以如果你在另一个时区,你可能会看到与你本地时间不完全匹配的文件。
英文:
You seem to have some data for the 16th. The default timezone is GMT so if you are in another timezone, you could see files that don't exactly match your local time.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论