Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Fix reschedule isuues #22

Merged
merged 9 commits into from
Mar 9, 2017
Merged

Fix reschedule isuues #22

merged 9 commits into from
Mar 9, 2017

Conversation

ashiquzzaman33
Copy link
Contributor

No description provided.

@ashiquzzaman33 ashiquzzaman33 self-assigned this Mar 3, 2017
j, ok := jb.(*Job)
if !ok {
log.Errorln("invalid job")
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for one invalid jobs this is not loading the next ok jobs. print log and may be continue instead of return

sj, ok := sji.(*CronJob)
if !ok {
log.Errorln("invalid cronjob")
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for one invalid jobs this is not loading the next ok jobs. print log and may be continue instead of return

@@ -93,6 +117,7 @@ func (s *Server) Start(addr string) {

go registerWebHandler(s)
go s.WatcherLoop()
go s.JobTimeoutMonitorLoop()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to WatchJobTimeout

}

func (s *Server) JobTimeoutMonitorLoop() {
ticker := time.NewTicker(time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of two block of code do

for tick := range time.NewTicker(time.Second) { ... }

@sadlil sadlil changed the title Sadlil/no reschedule Fix reschedule Isuues Mar 6, 2017
@sadlil sadlil changed the title Fix reschedule Isuues Fix reschedule isuues Mar 6, 2017
…ob functions

Signed-off-by: sadlil <sadlil@appscode.com>
@sadlil sadlil merged commit 8ddd88c into master Mar 9, 2017
@sadlil sadlil deleted the sadlil/no-reschedule branch March 9, 2017 10:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants