javan / javan/whenever

Capistrano deploy, sporadic duplicate cronjob entries

Open
#734 6 comments 4 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

Hello,

I am maintaining an application using whenever and, sometimes during deploy with capistrano, I end up with a crontab with duplicates entries, is this a known issue ? I found nothing on the tracker.

Here are the capistrano logs about update_crontab:

02:13 whenever:update_crontab
      01 /usr/local/rvm/bin/rvm 2.2.2@app do bundle exec whenever --update-crontab app --set environment=production --roles=worker
      01 *** schedule.rb, cron loaded
      01 [write] crontab file updated
    ✔ 01 app@xxx 1.295s

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 with the reported Capistrano update_crontab command and its [write] crontab file updated log output. Reproduce repeated deploys with the shown whenever --update-crontab app options and inspect how the crontab is updated; done means identifying and preventing the conditions that create duplicate entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.