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

log spam 'No available subtasks at the moment' #5144

Open
ederenn opened this issue Mar 25, 2020 · 0 comments
Open

log spam 'No available subtasks at the moment' #5144

ederenn opened this issue Mar 25, 2020 · 0 comments
Labels
0.23 release bug P3 Severity-Low/Effort-hard Task API

Comments

@ederenn
Copy link

ederenn commented Mar 25, 2020

Description

Golem Version:GOLEM Version: 0.22.1+dev117.gf5a985e

Golem-Messages version (leave empty if unsure):

Electron version (if used):

OS [e.g. Windows 10 Pro]: Mac OS Mojave

Branch (if launched from source): b0.23

Mainnet/Testnet: mainnet

Priority label is set to the lowest by default. To setup higher priority please change the label
P0 label is set for Severity-Critical/Effort-easy
P1 label is set for Severity-Critical/Effort-hard
P2 label is set for Severity-Low/ Effort-easy
P3 label is set for Severity-Low/Effort-hard

Description of the issue:

After a Task API task is finished in logs critical is repeated multiple times

2020-03-25 16:02:17 CRITICAL twisted                             Unhandled error in Deferred: 
2020-03-25 16:02:17 CRITICAL twisted                              
Traceback (most recent call last):
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/Users/a/projects/golem/golem/task/tasksession.py", line 428, in _offer_chosen
    ctd_res = yield self._get_next_ctd(msg)
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/Users/a/projects/golem/golem/task/tasksession.py", line 499, in _get_next_ctd
    node_id=self.key_id
  File "/Users/a/projects/golem/golem/core/deferred.py", line 75, in adapt
    extracted = result.result()
  File "/Users/a/projects/golem/golem/task/requestedtaskmanager.py", line 426, in get_next_subtask
    opaque_node_id=hashlib.sha3_256(node.node_id.encode()).hexdigest()  # noqa pylint: disable=no-member
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/golem_task_api/client.py", line 268, in next_subtask
    reply = await self._golem_app.NextSubtask(request)
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/grpclib/client.py", line 598, in __call__
    return await stream.recv_message()
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/grpclib/client.py", line 329, in recv_message
    await self.recv_initial_metadata()
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/grpclib/client.py", line 271, in recv_initial_metadata
    self._raise_for_grpc_status(headers_map, optional=True)
  File "/Users/a/projects/golem-env/lib/python3.6/site-packages/grpclib/client.py", line 240, in _raise_for_grpc_status
    raise GRPCError(grpc_status_enum, status_message)
grpclib.exceptions.GRPCError: (<Status.INTERNAL: 13>, 'No available subtasks at the moment')

Actual result:

Task is finished but logs are spammed with critical

Steps To Reproduce

Short description of steps to reproduce the behavior:
e.g.

  1. Launch the app
  2. Create a Task API blender task
  3. Wait for task to finish
  4. Check logs for error

Proposed Solution?

(Optional: What could be a solution for that issue)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0.23 release bug P3 Severity-Low/Effort-hard Task API
Projects
None yet
Development

No branches or pull requests

3 participants