Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Implement subtasks restart cost estimation RPC #4278

Merged
merged 4 commits into from
Jun 7, 2019

Conversation

kmazurek
Copy link
Contributor

@kmazurek kmazurek commented Jun 5, 2019

  • Added the RPC endpoint comp.task.subtasks.estimated.cost.
  • Added disable_concent flag to the comp.task.restart endpoint.
  • Fixed funds checking when performing a partial restart of a task (including previously failed subtasks).

@kmazurek kmazurek requested review from jiivan and shadeofblue June 5, 2019 11:30
@kmazurek kmazurek self-assigned this Jun 5, 2019
golem/task/rpc.py Outdated Show resolved Hide resolved
@shadeofblue
Copy link
Contributor

@zakaprov -> generally, please run node_integration_tests/tests/test_golem.py on the branch to make sure

@kmazurek kmazurek changed the title Implemented subtasks restart cost estimation RPC Implement subtasks restart cost estimation RPC Jun 5, 2019
@kmazurek
Copy link
Contributor Author

kmazurek commented Jun 6, 2019

@shadeofblue I ran the integration tests against this branch locally with all tests passing. Tried the same on Buildbot as well (here), with three of the tests failing for reasons unrelated to my changes (geth nodes being out of sync).

Copy link
Contributor

@shadeofblue shadeofblue left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov
Copy link

codecov bot commented Jun 7, 2019

Codecov Report

Merging #4278 into b0.20 will increase coverage by 0.08%.
The diff coverage is 97.29%.

@@            Coverage Diff             @@
##            b0.20    #4278      +/-   ##
==========================================
+ Coverage   88.58%   88.67%   +0.08%     
==========================================
  Files         223      223              
  Lines       19710    19712       +2     
==========================================
+ Hits        17461    17479      +18     
+ Misses       2249     2233      -16

kmazurek added 4 commits June 7, 2019 16:52
This adds the RPC endpoint `comp.task.subtasks.estimated.cost`. It
accepts an array of subtask IDs and returns a cost estimation for
restarting the selected subtasks.
@kmazurek kmazurek force-pushed the subtasks-restart-estimation branch from 2df322d to f537b6b Compare June 7, 2019 14:52
@kmazurek kmazurek merged commit c9fed0a into b0.20 Jun 7, 2019
@kmazurek kmazurek deleted the subtasks-restart-estimation branch June 7, 2019 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants