javan / javan/whenever

Slash schedules more elegantly supported?

Open
#792 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
8.9k
Forks
715
PR merge metrics
No merged PRs in 30d

Description

Hi - thanks for whenever! (I've been using it for about a decade!)

Is there a way to support syntax like this using the DSL?

*/7 * * * *

The best I can come up with (which is probably always semantically identical, but might not be depending on how cron is implemented) is:

every 7.minutes

Which generates:

7,14,21,28,35,42,49,56 * * * *

I was surprised to find zero discussion of this in issues and stackoverflow, so maybe I'm searching for the wrong thing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are identified in the issue. Start by locating the DSL handling for every 7.minutes and its cron-expression rendering, then determine how a slash interval could be expressed; done means the DSL emits */7 * * * * for the requested schedule and existing behavior remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.