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

TaskSession almost stateless #3896

Merged
merged 10 commits into from
Feb 20, 2019
Merged

TaskSession almost stateless #3896

merged 10 commits into from
Feb 20, 2019

Conversation

jiivan
Copy link
Contributor

@jiivan jiivan commented Feb 15, 2019

depends on: golemfactory/golem-messages#321

  1. Remove task_id from TaskSession
  2. Send TaskToCompute along with WaitingForResults (new GM)
  3. Verify owners of received WaitingForResults

Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

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

Looks good to me!

One small question, will approve on reply or fix :)

continue
if session.task_computer is not None:
session.task_computer.session_timeout()
session.dropped()
Copy link
Contributor

Choose a reason for hiding this comment

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

Will dropping the session here change the list of all_sessions? Think it was 2 loops for this reason

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually all_sessions is a frozenset() thus it can't change. Also it's a dynamically generated property which is a copy of incoming and outgoing sessions sets combined.

Copy link
Contributor

Choose a reason for hiding this comment

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

nice! ok, approving :D

@codecov
Copy link

codecov bot commented Feb 18, 2019

Codecov Report

Merging #3896 into develop will decrease coverage by 0.04%.
The diff coverage is 69.44%.

@@             Coverage Diff             @@
##           develop    #3896      +/-   ##
===========================================
- Coverage    87.77%   87.72%   -0.05%     
===========================================
  Files          216      216              
  Lines        18941    19081     +140     
===========================================
+ Hits         16625    16739     +114     
- Misses        2316     2342      +26

@jiivan jiivan merged commit 21a2fe6 into develop Feb 20, 2019
@ghost ghost removed the in progress label Feb 20, 2019
@jiivan jiivan deleted the wfr_taskified branch February 20, 2019 11:57
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