Scheduled Job
予定されたジョブ
スケジュールされたジョブは、選択した時間または繰り返し間隔でバックエンド作業を開始します。そのルールは、遅れた、見逃した、または重複する開始後に何が起こるかを示さなければなりません。
time zone + schedule + missed-run deadline + overlap policy -> one job attempttimeZone: Asia/Taipei実行中にスキップ✓time zone + schedule + missed-run deadline + overlap policy -> one job attemptJOBもう一つの例
KubernetesのCronJobは、`Asia/Taipei`で毎日02:30にバックアップを開始します。そのポリシーは、最後のジョブが実行中の場合に新しいジョブをスキップします。また、失われたジョブの開始が遅れる最大時間も制限します。バックアップは、計画された開始時刻を繰り返し安全キーとして使用します。
主な部分
- 01スケジュールとタイムゾーン
- 02次の予定開始
- 03ミスランルール
- 04オーバーラップポリシー
- 05実行ID
- 06実行履歴とアラート
以下の場合に使用します
定期的なバックアップ、レポート、クリーンアップ、または時刻に関連するその他の作業に使用します。タイムゾーン、遅延実行ルール、重複ルール、安全な再実行動作を定義してください。
以下の場合は使用しないでください
スケジュールが正確な秒に一度だけ実行されるとは想定しないでください。作業が時計時間ではなくデータの変更に属する場合は、イベントトリガーを使用してください。
コードで使用する名前
time zone + schedule + missed-run deadline + overlap policy -> one job attempt 出荷前に
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with 予定されたジョブ (Scheduled Job)。 User context:KubernetesのCronJobは、`Asia/Taipei`で毎日02:30にバックアップを開始します。そのポリシーは、最後のジョブが実行中の場合に新しいジョブをスキップします。また、失われたジョブの開始が遅れる最大時間も制限します。バックアップは、計画された開始時刻を繰り返し安全キーとして使用します。 Technical concept or control:予定されたジョブ (Scheduled Job)。 Why it fits:定期的なバックアップ、レポート、クリーンアップ、または時刻に関連するその他の作業に使用します。タイムゾーン、遅延実行ルール、重複ルール、安全な再実行動作を定義してください。 Do not use it when:スケジュールが正確な秒に一度だけ実行されるとは想定しないでください。作業が時計時間ではなくデータの変更に属する場合は、イベントトリガーを使用してください。 Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
このリクエストを確認する
Review how 予定されたジョブ (Scheduled Job) is used now. Definition: スケジュールされたジョブは、選択した時間または繰り返し間隔でバックエンド作業を開始します。そのルールは、遅れた、見逃した、または重複する開始後に何が起こるかを示さなければなりません。 Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.