# 年度审查后台作业是否每天运行两次？

**URL:** https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690
**Category:** Support
**Tags:** yearly-review
**Created:** [2023年一月1日 12:33 UTC](https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690 "2023-01-01T12:33:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2023年一月1日 12:33 UTC](https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690/1 "2023-01-01T12:33:13Z")

</div>

这是一个非常表面化的问题，我只是好奇而已，但\n\* `Jobs::YearlyReview` 真的会每天运行两次吗\n\* 时间是从上次尝试开始计算的吗\n\n

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/f/a/6fa958ff62a297d699645e1a1b55e9d46d921db5.jpeg)\n\n当时是上午 9:44，比现在早 14 小时。下次尝试将在 10 小时后，大约是晚上 7:44。我期望它在午夜后不久运行，并且每年一次，就像 cron 一样工作。

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2023年一月1日 19:02 UTC](https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690/2 "2023-01-01T19:02:06Z")

</div>

> [@Jagster](#):
>
> `Jobs::YearlyReview` 真的会每天运行两次吗？

该作业计划在 1 月份每 24 小时运行一次：[discourse-yearly-review/app/jobs/yearly\_review.rb at main · discourse/discourse-yearly-review · GitHub](https://github.com/discourse/discourse-yearly-review/blob/main/app/jobs/yearly_review.rb#L12%E3%80%82%E5%A6%82%E6%9E%9C%E7%BD%91%E7%AB%99%E4%B8%8A%E6%89%BE%E5%88%B0%E4%B8%80%E4%B8%AA%E4%B8%BB%E9%A2%98%EF%BC%8C%E5%85%B6%E6%A0%87%E9%A2%98%E4%B8%8E%E5%AE%A1%E6%9F%A5%E4%B8%BB%E9%A2%98%E7%9A%84%E6%A0%87%E9%A2%98%E5%8C%B9%E9%85%8D%EF%BC%8C%E5%88%99%E8%AF%A5%E4%BD%9C%E4%B8%9A%E4%B8%8D%E4%BC%9A%E9%87%8D%E6%96%B0%E8%BF%90%E8%A1%8C%E3%80%82%E8%BF%99%E6%84%8F%E5%91%B3%E7%9D%80%E5%8F%AA%E4%BC%9A%E7%94%9F%E6%88%90) 1 个审查主题，除非您在创建审查主题后编辑其标题。

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2023年一月1日 20:54 UTC](https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690/3 "2023-01-01T20:54:37Z")

</div>

> [@simon](#):
>
> 每月一次，在1月份的24小时内

找到合适的主题后，31次是不是某种安全机制？还是我们之间有语言障碍？很有可能 🤣

但是……我仍然不明白时间戳。1月1日早上9点44分，sidekiq告诉我YearlyReview在14小时前（12月31日）被触发了。

再说一遍——这根本不是问题。我只是想弄明白，因为我空闲时间太多了。

不过，如果我的用户要等10个小时才能获得那些宝贵的统计数据，他们会非常焦虑。嗯，我知道如何启动sidekick，问题解决了 😉

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2023年一月1日 22:58 UTC](https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690/4 "2023-01-01T22:58:21Z")

</div>

> [@Jagster](#):
>
> 找到一个合适的主题需要31次，这是一种故障保护机制吗？

是的，它用于防止该作业在一年中的第一个月之外被意外运行。请注意，如果您使用 `force: true` 参数从控制台触发该作业，则可以在第一个月之外创建审核主题。

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2023年一月2日 07:36 UTC](https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690/5 "2023-01-02T07:36:30Z")

</div>

真的有必要吗？我不得不去删除重复的主题，并在我的几个实例上关闭了该插件。这不算什么大事，但似乎不应该有。

新年期间，管理员通常会离开他们的实例几天——如果他们没有将插件指向一个不错、私密的分类，那就不理想了。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年四月24日 11:31 UTC](https://meta.discourse.org/t/does-the-yearly-review-background-job-run-twice-a-day/262690/6 "2023-04-24T11:31:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
