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

Fix data race in lastRun #359

Merged
merged 2 commits into from Jul 25, 2022
Merged

Conversation

seunghyupoh3517
Copy link

@seunghyupoh3517 seunghyupoh3517 commented Jul 24, 2022

What does this do?

This fix covers the remaining data race issue in job lastRun.

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

Data race when using RunByTag

List any changes that modify/break current functionality

Properly protect data race condition in runContinuous, neverRan, shouldRunAtSpecificTime - prevents potential dead lock issue previously introduced as well.

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@seunghyupoh3517
Copy link
Author

@JohnRoesler Checked with my forked repo on our project and now I finally see the data race issues are gone. Please take a look :)

@JohnRoesler JohnRoesler merged commit 2764428 into go-co-op:main Jul 25, 2022
@seunghyupoh3517
Copy link
Author

@JohnRoesler Thanks for checking it! Please let me know when you release the change and you may resolve tagged issue :)

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.

None yet

2 participants