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

scheduler: implement v0 scheduler #137

Merged
merged 4 commits into from
Feb 28, 2022
Merged

scheduler: implement v0 scheduler #137

merged 4 commits into from
Feb 28, 2022

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Feb 25, 2022

Implements the first version of the scheduler. For now it just has an integration test. Will improve godocs and add more tests in subsequent PRs if we are happy with the approach.

category: feature
ticket: #145

corverroos added a commit that referenced this pull request Feb 25, 2022
Adds the DutyArg and DutyArgSet types to the scheduler and fetcher components in architecture doc.

It became evident in #137 that the fetcher needs arguments to fetch the duty data, not just the duty itself (e.g. committee_index for DutyAttester). Since this is what the scheduler already does, it should pass it along with the duty to the fetcher.
@codecov
Copy link

codecov bot commented Feb 26, 2022

Codecov Report

Merging #137 (bce41eb) into corver/tblspukey (92bbb09) will decrease coverage by 6.06%.
The diff coverage is 1.30%.

Impacted file tree graph

@@                 Coverage Diff                  @@
##           corver/tblspukey     #137      +/-   ##
====================================================
- Coverage             52.34%   46.28%   -6.07%     
====================================================
  Files                    29       30       +1     
  Lines                  1725     1951     +226     
====================================================
  Hits                    903      903              
- Misses                  735      961     +226     
  Partials                 87       87              
Impacted Files Coverage Δ
scheduler/scheduler.go 0.00% <0.00%> (ø)
types/duty.go 0.00% <0.00%> (ø)
app/simulate.go 86.44% <66.66%> (ø)
cluster/leadercast/leadercast.go 77.77% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92bbb09...bce41eb. Read the comment docs.

@corverroos corverroos linked an issue Feb 28, 2022 that may be closed by this pull request
@corverroos corverroos removed a link to an issue Feb 28, 2022
Base automatically changed from corver/tblspukey to main February 28, 2022 10:44
@corverroos corverroos merged commit c1d0f18 into main Feb 28, 2022
@corverroos corverroos deleted the corver/scheduler branch February 28, 2022 11:43
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

1 participant