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

RequestedTaskManager - Start and stop the envs #4710

Merged
merged 18 commits into from
Sep 12, 2019
Merged

Conversation

maaktweluit
Copy link
Contributor

Added quit method to RTM to shutdown all running app clients.

Mocked the TaskServer.quit() where needed to ensure these tests do not need asyncio

golem/task/requestedtaskmanager.py Outdated Show resolved Hide resolved
golem/task/requestedtaskmanager.py Outdated Show resolved Hide resolved
golem/task/taskserver.py Outdated Show resolved Hide resolved
golem/task/taskserver.py Outdated Show resolved Hide resolved
@maaktweluit maaktweluit requested a review from Krigpl September 11, 2019 11:54
tests/golem/task/test_taskserver.py Show resolved Hide resolved
tests/golem/test_client.py Show resolved Hide resolved
tests/golem/test_client.py Outdated Show resolved Hide resolved
golem/task/requestedtaskmanager.py Outdated Show resolved Hide resolved
golem/task/taskserver.py Show resolved Hide resolved
tests/golem/task/test_rpc.py Show resolved Hide resolved
@maaktweluit maaktweluit requested a review from Krigpl September 11, 2019 13:29
golem/task/requestedtaskmanager.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 11, 2019

Codecov Report

Merging #4710 into develop will decrease coverage by 1.08%.
The diff coverage is 83.33%.

@@             Coverage Diff             @@
##           develop    #4710      +/-   ##
===========================================
- Coverage     90.3%   89.21%   -1.09%     
===========================================
  Files          211      211              
  Lines        19691    19693       +2     
===========================================
- Hits         17782    17570     -212     
- Misses        1909     2123     +214

golem/client.py Outdated Show resolved Hide resolved
golem/task/taskserver.py Outdated Show resolved Hide resolved
@Wiezzel
Copy link

Wiezzel commented Sep 12, 2019

I'm also not sure about naming the newly introduced methods quit because it seem to suggest an irreversible shutdown. Maybe stop would make a better name?

@maaktweluit
Copy link
Contributor Author

@Wiezzel Made the change to stop agree its a better name

Will wait with pushing till we clarify if wait_for_shutdown is needed to not trigger tests twice

Copy link

@Wiezzel Wiezzel left a comment

Choose a reason for hiding this comment

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

You forgot about the tests when renaming.

@maaktweluit
Copy link
Contributor Author

🙈

Good catch, fixed

@maaktweluit maaktweluit merged commit 7f68954 into develop Sep 12, 2019
@maaktweluit maaktweluit deleted the mwu/rtm-start-stop branch September 12, 2019 16:53
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.

4 participants