-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add contexts to interfaces #41
Conversation
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
==========================================
- Coverage 83.38% 83.12% -0.27%
==========================================
Files 7 7
Lines 620 634 +14
==========================================
+ Hits 517 527 +10
- Misses 71 78 +7
+ Partials 32 29 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I've added tests, and think this is mostly ready to go, modulo any changes that you think are good. |
} | ||
|
||
func (sched *StdScheduler) startExecutionLoop() { | ||
func (sched *StdScheduler) startExecutionLoop(ctx context.Context) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant new line.
quartz/scheduler_test.go
Outdated
} | ||
} | ||
for _, tt := range []string{"context", "stop"} { | ||
if tt == "stop" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires time.Sleep
in both cases. Otherwise, it fails locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting. It passes locally for me, but my machine is linux and kind of a beast, but I took out if statement.
Co-authored-by: Eugene R. <[email protected]>
I still want to do some work to add test coverage of this, and potentially exercise the new signal channel, but I'm pretty confident in the general approach, and wanted to get some early feedback.
Addresses: #40