【问题标题】:Google Cloud App Engine Cron Service InterruptionGoogle Cloud App Engine Cron 服务中断
【发布时间】:2018-05-11 20:42:30
【问题描述】:

我昨天下午 12 点设置了一个 cron 作业,每分钟运行一次。请参阅下面的 cron.yaml 文件中的代码。

cron:
- description: Push a "tick" onto pubsub every minute.
  url: /publish/minute-tick
  schedule: every 1 minutes from 00:00 to 23:00
  retry_parameters:
    min_backoff_seconds: 2.5
    max_doublings: 3

我在我的应用程序中非常依赖这个 cron 来进行调度。这让我很困扰,因为在设置 cron 几个小时后,我看到服务下降了 1 小时(下午 6 点到 7 点)。我已经搜索了日志,但没有任何解释。

截图

在下车时间记录条目

问题

  1. 有人知道为什么会出现这种下降吗?如果是这样,appengine 仪表板中是否有地方我可以找到解释。
  2. 在 appengine 中 24 小时运行 1 分钟 cron 是否可靠?我读到的所有地方都提到 crons 用于每小时、每周和不太频繁的工作。如果您对 Google App Engine 内外的 minutley crons 有任何文章建议,请告诉我。

【问题讨论】:

    标签: google-app-engine google-cloud-platform google-cloud-pubsub


    【解决方案1】:

    看起来是这个问题:

      schedule: every 1 minutes from 00:00 to 23:00
    

    您错过了一个小时的日程安排!我怀疑时区差异导致下午 6 点到 7 点下降。

    【讨论】:

    • 啊。谢谢杰夫。我有之前每小时运行的 cron 的时间表。但现在每分钟我都需要计算 23:00 到 00:00 之间的分钟数
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-17
    相关资源
    最近更新 更多