Access service logs and decide for withdraw or refund
Description
Click to expand
Who
- @joao.castro5 -- developer
- @kabir.kbr @dagiopia @janaina.senna -- advice and help related to the architecture, reviewers.
What
- Oracle needs to decide if the funds will be withdraw or refund using the ML job container exit status.
How
- Oracle receives the log path (for public alpha, it is a gist URL) and needs to access it to get the container exit status at the end of the logs.
- On this issue we are saving the compute job's result on Gist.
- On this issue we are adding the container exit status on the end of the logs.
- Implement in Oracle an algorithm to create the output parameters of the
request reward
call defined on this issue:- withdraw in case of container exit status is success
- refund is case of container exist status is error
Why
- We need to implement the sequence diagram for running a ML on a GPU and compensate the computer provider described here.
When
- Some related issues:
Acceptance Criteria
Click to expand
Work Breakdown Structure (WBS)
Task | Description | Duration | Status | Start Date | End Date | Comment |
---|---|---|---|---|---|---|
A | Retrieve gist log through Github API using NuNet Github's account token | 1 Hrs | Done | 03.28.23 | 03.28.23 | |
B | Analyze gist log, check for errors | 5 Hrs | Done | 03.28.23 | 03.29.23 | |
C | Check exit status + result of gist log analyzes and decide about job completeness | 3 Hrs | Done | 03.29.23 | 03.29.23 | |
D | Add unit tests | 3 Hrs | Done | 03.29.23 | 03.29.23 | I could test only one successful job because I didn't have any other example |
E | Describe job validation process and give examples on this issue as a comment. And document the same process on the code (or just link to this issue) | 1 Hrs | Done | 03.30.23 | 03.30.23 |
Edited by Joao Castro