golemfactory / ya-runtime-ai

1 stars 1 forks source link

Facade error handling #77

Closed staszek-krotki closed 2 months ago

staszek-krotki commented 3 months ago

Make error handling consistent and resilient so that we are able to read logs and trace back to the original issue.

Problems:

Proposals:

Testing for scenarios:

For testing purposes try to modify yagna/provider to trigger different errors (fails, crashes, deadlocks)

The end goal is to expose these exceptions as event as part of this task: https://github.com/golemfactory/gamerhash-facade/issues/104

staszek-krotki commented 2 months ago

Sample Api error:

Image

staszek-krotki commented 2 months ago

Provider startup error:

Image

staszek-krotki commented 2 months ago

Normal Stop (no error):

Image

staszek-krotki commented 2 months ago

Yagna CLI errors (e.g. yagna payment --init) are visible in logs but no exception/error code returned. Errors can be seen later:

Image

staszek-krotki commented 2 months ago

After changes in CLI handling:

Image