Skip to content

Commit

Permalink
Merge pull request #196 from dshearer/maint-1.3-issue-192
Browse files Browse the repository at this point in the history
Maint 1.3 issue 192
  • Loading branch information
dshearer authored May 28, 2018
2 parents eb4a1e3 + 52753fb commit e8fd5d7
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 24 deletions.
5 changes: 3 additions & 2 deletions jobberrunner/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package main
import (
"container/heap"
"context"
"time"

"github.com/dshearer/jobber/common"
"github.com/dshearer/jobber/jobfile"
"time"
)

func nextRunTime(job *jobfile.Job, now time.Time) *time.Time {
Expand Down Expand Up @@ -103,7 +104,7 @@ func (jq *JobQueue) Pop(ctx context.Context, now time.Time) *jobfile.Job {
job := heap.Pop(&jq.q).(*jobfile.Job)

// sleep till it's time to run it
if now.Before(*job.NextRunTime) {
for now.Before(*job.NextRunTime) {
afterChan := time.After(job.NextRunTime.Sub(now))
select {
case now = <-afterChan:
Expand Down
20 changes: 13 additions & 7 deletions packaging/debian_9/debian-pkg/changelog
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
jobber (1.3.2-1) UNRELEASED; urgency=low
jobber (1.3.3-pr.1-1) UNRELEASED; urgency=low

* Release 1.3.2
* Release 1.3.3-pr.1

-- C. Dylan Shearer <[email protected]> Sat, 28 May 2018 10:22:00 -0800

jobber (1.3.2-1) UNRELEASED; urgency=low

* Release 1.3.2

-- C. Dylan Shearer <[email protected]> Sat, 24 Feb 2018 12:40:00 -0800

-- C. Dylan Shearer <[email protected]> Sat, 24 Feb 2018 12:40:00 -0800

jobber (1.3.1-1) UNRELEASED; urgency=low

* Release 1.3.1

-- C. Dylan Shearer <[email protected]> Sun, 3 Feb 2018 15:48:00 -0800

jobber (1.3.0-1) UNRELEASED; urgency=low

* Release 1.3.0
Expand All @@ -21,13 +27,13 @@ jobber (1.3.0-pr.1-1) UNRELEASED; urgency=low
* Release 1.3.0-pr.1

-- C. Dylan Shearer <[email protected]> Sat, 13 Jan 2018 10:47:00 -0800

jobber (1.2.1-1) UNRELEASED; urgency=low

* Release 1.2.1

-- C. Dylan Shearer <[email protected]> Fri, 28 Dec 2017 18:50:00 -0800

jobber (1.2-1) UNRELEASED; urgency=low

* Initial release (Closes: #nnnn)
Expand Down
20 changes: 13 additions & 7 deletions packaging/ubuntu_14/debian-pkg/changelog
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
jobber (1.3.2-1) UNRELEASED; urgency=low
jobber (1.3.3-pr.1-1) UNRELEASED; urgency=low

* Release 1.3.2
* Release 1.3.3-pr.1

-- C. Dylan Shearer <[email protected]> Sat, 28 May 2018 10:22:00 -0800

jobber (1.3.2-1) UNRELEASED; urgency=low

* Release 1.3.2

-- C. Dylan Shearer <[email protected]> Sat, 24 Feb 2018 12:40:00 -0800

-- C. Dylan Shearer <[email protected]> Sat, 24 Feb 2018 12:40:00 -0800

jobber (1.3.1-1) UNRELEASED; urgency=low

* Release 1.3.1

-- C. Dylan Shearer <[email protected]> Sun, 3 Feb 2018 15:48:00 -0800

jobber (1.3.0-1) UNRELEASED; urgency=low

* Release 1.3.0
Expand All @@ -21,13 +27,13 @@ jobber (1.3.0-pr.1-1) UNRELEASED; urgency=low
* Release 1.3.0-pr.1

-- C. Dylan Shearer <[email protected]> Sat, 13 Jan 2018 10:47:00 -0800

jobber (1.2.1-1) UNRELEASED; urgency=low

* Release 1.2.1

-- C. Dylan Shearer <[email protected]> Fri, 28 Dec 2017 18:50:00 -0800

jobber (1.2-1) UNRELEASED; urgency=low

* Initial release (Closes: #nnnn)
Expand Down
20 changes: 13 additions & 7 deletions packaging/ubuntu_16/debian-pkg/changelog
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
jobber (1.3.2-1) UNRELEASED; urgency=low
jobber (1.3.3-pr.1-1) UNRELEASED; urgency=low

* Release 1.3.2
* Release 1.3.3-pr.1

-- C. Dylan Shearer <[email protected]> Sat, 28 May 2018 10:22:00 -0800

jobber (1.3.2-1) UNRELEASED; urgency=low

* Release 1.3.2

-- C. Dylan Shearer <[email protected]> Sat, 24 Feb 2018 12:40:00 -0800

-- C. Dylan Shearer <[email protected]> Sat, 24 Feb 2018 12:40:00 -0800

jobber (1.3.1-1) UNRELEASED; urgency=low

* Release 1.3.1

-- C. Dylan Shearer <[email protected]> Sun, 3 Feb 2018 15:48:00 -0800

jobber (1.3.0-1) UNRELEASED; urgency=low

* Release 1.3.0
Expand All @@ -21,13 +27,13 @@ jobber (1.3.0-pr.1-1) UNRELEASED; urgency=low
* Release 1.3.0-pr.1

-- C. Dylan Shearer <[email protected]> Sat, 13 Jan 2018 10:47:00 -0800

jobber (1.2.1-1) UNRELEASED; urgency=low

* Release 1.2.1

-- C. Dylan Shearer <[email protected]> Fri, 28 Dec 2017 18:50:00 -0800

jobber (1.2-1) UNRELEASED; urgency=low

* Initial release (Closes: #nnnn)
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.2
1.3.3-pr.1

0 comments on commit e8fd5d7

Please sign in to comment.