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

Fixed CPU time limit calculation #4909

Merged
merged 9 commits into from
Nov 20, 2019
Merged

Fixed CPU time limit calculation #4909

merged 9 commits into from
Nov 20, 2019

Conversation

kmazurek
Copy link
Contributor

No description provided.

@kmazurek kmazurek self-assigned this Nov 18, 2019
Copy link
Contributor

@mbenke mbenke left a comment

Choose a reason for hiding this comment

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

Something seems wrong here - the cpu limit seems to be always 3600, no matter what the task budget:

INFO     [golem.task.taskcomputer            ] Starting computation of subtask 'cd5dbb18-0a9c-11ea-8580-054089b37bde' (task: 'c18d9810-0a9c-11ea-bcfe-054089b37bde', deadline: 1574147954, docker images: [{'repository': 'golemfactory/wasm', 'image_id': None, 'tag': '0.5.4'}], cpu_limit: 3600)

This probably stems from https://github.com/golemfactory/golem/blob/develop/golem/task/tasksession.py#L453

golem/task/taskcomputer.py Show resolved Hide resolved
golem/task/taskserver.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 20, 2019

Codecov Report

Merging #4909 into b0.22 will increase coverage by 0.95%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##            b0.22    #4909      +/-   ##
==========================================
+ Coverage   89.23%   90.18%   +0.95%     
==========================================
  Files         233      233              
  Lines       21454    21458       +4     
==========================================
+ Hits        19144    19352     +208     
+ Misses       2310     2106     -204

@kmazurek kmazurek merged commit 3411943 into b0.22 Nov 20, 2019
@kmazurek kmazurek deleted the fix/cpu-limit branch November 20, 2019 15:22
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