mirror of
https://github.com/plashchynski/crono.git
synced 2026-01-13 22:03:27 +01:00
[PR #53] [MERGED] schedule on: today if at: time not passed #88
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plashchynski/crono/pull/53
Author: @acolyer
Created: 11/6/2016
Status: ✅ Merged
Merged: 11/16/2016
Merged by: @plashchynski
Base:
master← Head:same_day📝 Commits (1)
3f9ea83schedule today if at: time not passed📊 Changes
2 files changed (+11 additions, -0 deletions)
View changed files
📝
lib/crono/period.rb(+1 -0)📝
spec/period_spec.rb(+10 -0)📄 Description
I noticed with my weekly tasks where a time of day was specified (e.g. on: :sunday, at: '22:00') , and Crono was started on that day (e.g. Sunday), but before the schedule time (e.g. 21:00) that the job would be scheduled for one week later rather than the same day. With heroku restarts my jobs scheduled for later in the day never got to run!
See accompany test case (which fails without the fix) and the trivial fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.