Capistrano deploy, sporadic duplicate cronjob entries
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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