Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Schedule format with forward slash (/) not supported

オープン
#46 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
cli

調査の方向性

まず */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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EasyEngine/cron-command のほかの issue

EasyEngine/cron-command の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。