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

Make WorkChunk handling transactional at state transitions. #4621

Merged
merged 18 commits into from
Mar 12, 2023

Conversation

michaelabuckley
Copy link
Contributor

@michaelabuckley michaelabuckley commented Mar 3, 2023

  • use a separate enum for the states - chunks have different transitions than instances.
  • use transactional update events for work-chunk state transitions
  • introduce spec-test to define behaviour of batch2 storage
  • replace synchronized facade with simpler ProxyUtil handler.
  • change job cancellation to db update query

@michaelabuckley michaelabuckley changed the title Cleanup batch WorkChunk handling. Make WorkChunk handling transactional at state transitions. Mar 10, 2023
@michaelabuckley michaelabuckley marked this pull request as draft March 10, 2023 00:29
@michaelabuckley michaelabuckley marked this pull request as ready for review March 10, 2023 00:29
Copy link
Collaborator

@JasonRoberts-smile JasonRoberts-smile left a comment

Choose a reason for hiding this comment

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

Approved with some small comments

@codecov
Copy link

codecov bot commented Mar 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.17 🎉

Comparison is base (2f5ffe7) 81.32% compared to head (ad55207) 81.50%.

❗ Current head ad55207 differs from pull request most recent head 4f3334c. Consider uploading reports for the commit 4f3334c to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4621      +/-   ##
============================================
+ Coverage     81.32%   81.50%   +0.17%     
- Complexity    23650    24039     +389     
============================================
  Files          1425     1444      +19     
  Lines         86399    88020    +1621     
  Branches      11677    11842     +165     
============================================
+ Hits          70265    71737    +1472     
- Misses        10947    11031      +84     
- Partials       5187     5252      +65     

see 227 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@michaelabuckley michaelabuckley merged commit d1f9c94 into master Mar 12, 2023
@michaelabuckley michaelabuckley deleted the mb-work-chunk-events branch March 12, 2023 23:19
tadgh pushed a commit that referenced this pull request Apr 26, 2023
- use a separate enum for the states - chunks have different transitions than instances.
- use transactional update events for work-chunk state transitions
- introduce spec-test to define behaviour of batch2 storage
- replace synchronized facade with simpler ProxyUtil handler.
- change job cancellation to db update query
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

3 participants