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

Tasks block until TaskMinConfirmations have been met #184

Merged
merged 12 commits into from
Mar 23, 2018

Conversation

dimroc
Copy link
Contributor

@dimroc dimroc commented Mar 23, 2018

Includes the renaming and addition of the following configurations:

    TX_MIN_CONFIRMATIONS     Default: 12
    TASK_MIN_CONFIRMATIONS   Default: 6

se3000 and others added 7 commits March 23, 2018 12:39
Signed-off-by: Dimitri Roche <dimroc@gmail.com>
Signed-off-by: Steve Ellis <email@steveell.is>
Signed-off-by: Dimitri Roche <dimroc@gmail.com>
Signed-off-by: Steve Ellis <email@steveell.is>
Signed-off-by: Dimitri Roche <dimroc@gmail.com>
@dimroc dimroc changed the title Tasks block until TaskMinConfirmations have been met WIP: Tasks block until TaskMinConfirmations have been met Mar 23, 2018
@dimroc dimroc force-pushed the features/task-confirmations branch from f82c37a to ced632f Compare March 23, 2018 20:58
@codecov
Copy link

codecov bot commented Mar 23, 2018

Codecov Report

Merging #184 into master will increase coverage by 0.13%.
The diff coverage is 86.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #184      +/-   ##
==========================================
+ Coverage   83.68%   83.82%   +0.13%     
==========================================
  Files          39       39              
  Lines        2869     2955      +86     
==========================================
+ Hits         2401     2477      +76     
- Misses        296      307      +11     
+ Partials      172      171       -1
Impacted Files Coverage Δ
store/models/job_spec.go 91.89% <ø> (ø) ⬆️
store/config.go 57.57% <ø> (ø) ⬆️
services/subscription.go 81.29% <100%> (+1.82%) ⬆️
adapters/eth_tx.go 63.33% <100%> (ø) ⬆️
store/models/orm.go 79.48% <100%> (+1.7%) ⬆️
cmd/renderer.go 87.23% <100%> (ø) ⬆️
store/tx_manager.go 68.08% <100%> (ø) ⬆️
store/models/eth.go 92.75% <100%> (+2.89%) ⬆️
adapters/no_op.go 100% <100%> (ø) ⬆️
internal/cltest/fixtures.go 92.19% <100%> (+0.28%) ⬆️
... and 10 more

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 2c4f342...a423d27. Read the comment docs.

@dimroc dimroc changed the title WIP: Tasks block until TaskMinConfirmations have been met Tasks block until TaskMinConfirmations have been met Mar 23, 2018
@dimroc
Copy link
Contributor Author

dimroc commented Mar 23, 2018

Maybe we should have TASK_MIN_CONFIRMATIONS default to 0 until we're done with the epic.

}{
{"unset", nil, big.NewInt(2), big.NewInt(2)},
{"set", big.NewInt(1), big.NewInt(2), big.NewInt(1)},
{"unset and nil", nil, nil, nil},
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

run.Status = models.StatusErrored
run.Result.SetError(err)
return run
if !jr.Runnable(bn, store.Config.TaskMinConfirmations) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call on putting this check in here. Looking easy to update in the future.

@se3000 se3000 merged commit 588df17 into master Mar 23, 2018
@dimroc dimroc deleted the features/task-confirmations branch April 19, 2018 16:00
pavel-raykov pushed a commit that referenced this pull request Jun 14, 2024
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.

2 participants