Schedule format with forward slash (/) not supported
まだ誰も着手していません。
評価
調査の方向性
まず */10 * * * * と 0,10,20,30,40,50 * * * * を使った ee cron update コマンドで問題を再現し、次に ee cron list の背後にあるスケジュール処理を調査します。受け付けられる入力を、標準的な5フィールドの Linux cron 構文および表示される 0 5/10 * * * * の値と比較します。スラッシュとカンマを含むスケジュールを設定でき、既存のスケジュールを有効な cron 形式で往復できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Maybe I missed something, but it seems like I can't set a cron schedule that includes a forward slash like so:
*/10 * * * *
this should execute the cronjob at every 10th minute, so at :00, :10, :20, :30, :40 and :50.
I used the following command to update the crontask:
ee cron update 1 --schedule="*/10 * * * *"
and got the following error:
Error: Schedule format should be same as Linux cron or schedule helper syntax(Check help for this)
Incidentally, it is not possible to set multiple minutes either:
ee cron update 5 --schedule="0,10,20,30,40,50 * * * *"
The interesting part is when it comes to reading existing cronjobs. Running ee cron list website.com gives the following output:
+----+-------------+-------------------------------------+----------------+
| id | site_url | command | schedule |
+----+-------------+-------------------------------------+----------------+
| 5 | website.com | sh -c 'wp cron event run --due-now' | 0 5/10 * * * * |
+----+-------------+-------------------------------------+----------------+
The issue is that 0 5/10 * * * * itself is not a properly formatted cron schedule expression, at least when validated with a website called crontab.guru.
I suspect it should actually be 5/10 * * * *, but then again this cannot be set.
So changing an existing cron schedule makes it impossible to go back…
- 主要言語
- PHP
- スター
- 4
- フォーク
- 8
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EasyEngine/cron-command のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
EasyEngine/cron-command#54 · コメント 4 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
EasyEngine/cron-command#49 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
EasyEngine/cron-command#45 ·
-
List all crons オープンstatus/needs-discussion
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
EasyEngine/cron-command#39 ·
-
status/needs-discussion
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
EasyEngine/cron-command#38 ·
EasyEngine/cron-command の issue をすべて見る
似ている issue
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Automattic/blocks-engine#2161 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/static-site-importer#1824 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100