Skip to content
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

add example for job.weekdays() and tweak scheduler week examlpes, go mod tidy #166

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

JohnRoesler
Copy link
Contributor

What does this do?

Which issue(s) does this PR fix/relate to?

List any changes that modify/break current functionality

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@joaolcaas
Copy link

@JohnRoesler appears the tests are accusing a race condition due to this line (I think). My test changes a lot the lastRun to test the next.

Copy link
Member

@arjunmahishi arjunmahishi left a comment

Choose a reason for hiding this comment

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

LGTM

BTW, what would be the behavior for this:

s.Every(2).Week().Friday().Do(task)

Is this going to run every alternate Friday?

@JohnRoesler JohnRoesler merged commit 43b85a0 into go-co-op:master Apr 28, 2021
@JohnRoesler JohnRoesler deleted the weekdays-example branch April 28, 2021 19:59
@JohnRoesler
Copy link
Contributor Author

@joaolcaas mind submitting a PR to fix the race?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants