javan / javan/whenever

Scheduled task for alternate saturday

Open
#742 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

every '0 1 * * 6#2' do  
    rake 'prj:task1', output: 'log/task1.log'  
end

This leads to error:
gems/whenever-0.10.0/lib/whenever/cron.rb:154:in `parse_as_string': Couldn't parse: 0 1 8-14 (ArgumentError)'
Need a guidance to run a cron on alternate saturdays.

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

Start by reproducing the cron expression from the issue and reading gems/whenever-0.10.0/lib/whenever/cron.rb:154, where parsing fails. Check how Whenever handles the alternate-Saturday expression and document a supported way to schedule it, including the resulting cron syntax and expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.