You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-20Lines changed: 45 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,14 @@
3
3
4
4
5
5
6
-
7
6
# Actors :
8
7
- (w) = an account with a wallet key pair
9
8
- (s) = a smart contract created by (w)
10
9
- (p) = application to start ( like java prog) on the responsability of (w) when used
11
10
- (r) = a repository on the responsability of (w)
12
11
13
-
## Marketplace Creator :
14
-
create [IexecHub](./contracts/IexecHub.sol) smart contract. IexecHub is composed of [TaskRequestHub](./contracts/TaskRequestHub.sol),[WorkerPoolHub](./contracts/WorkerPoolHub.sol),[DatasetHub](./contracts/DatasetHub.sol),[AppHub](./contracts/AppHub.sol). Once smart contract are created, Marketplace can be used by the following actors :
12
+
## Actor : Marketplace Creator :
13
+
create [IexecHub](./contracts/IexecHub.sol) smart contract. IexecHub is composed of [WorkOrderHub](./contracts/WorkOrderHub.sol),[WorkerPoolHub](./contracts/WorkerPoolHub.sol),[DatasetHub](./contracts/DatasetHub.sol),[AppHub](./contracts/AppHub.sol). Once IexecHub smart contract is created by Marketplace Creator, Marketplace can be used by the others actors scheduler, workers, iExecCloudUser :
15
14
16
15
blockchain interaction :
17
16
<table>
@@ -39,15 +38,41 @@ blockchain interaction :
39
38
</tbody>
40
39
</table>
41
40
41
+
## Actor : iExecCloudUser
42
+
- iExecCloudUser = U(w)
43
+
- U(s) = a [WorkOrder](./contracts/WorkOrder.sol) smart contract owned by U(w)
42
44
45
+
WorkOrder status are :
46
+
- PENDING : workOrder not yet accepted by the scheduler of workerPool
47
+
- ACCEPTED : accepted by the scheduler of workerPool
48
+
- CANCELLED : a non accepted work order have been cancelled by the user U(w)
49
+
- ABORTED : an accepted work order has never reach the consensus and claimFailedConsensus has been called. The status is set to ABORTED
50
+
- COMPLETED : worker order is COMPLETED. finalizedWork function has been successfully called in the Workpool smart contract.
43
51
44
52
45
-
46
-
## Scheduler :
53
+
## Actor : Scheduler :
47
54
- ScheduleProvider = S(w)
48
55
- S(s) = a [WorkerPool](./contracts/WorkerPool.sol) smart contract owned by S(w)
49
56
- S(p) = iexec-scheduler = application that schedule a worker pool activity on the responsability of S(w). (works, tasks, datas for result in xtremweb)
50
-
- S(r) = ResultRepository = provide the task result for U(w) on the responsability of S(w)
57
+
- S(r) = ResultRepository = provide the work result for U(w) on the responsability of S(w)
58
+
59
+
Each WorkOrder affected in this WorkPool have a ConsensusStatus :
60
+
- PENDING : scheduler have not accepted the work order yet. (WorkOrder=PENDING)
61
+
- CANCELLED : a non accepted work order have been cancelled by the user U(w) (WorkOrder=CANCELLED)
62
+
- STARTED : scheduler has called acceptWorkOrder function.(WorkOrder=ACCEPTED)
63
+
- IN_PROGRESS : scheduler has called at least on callForContribution (WorkOrder=ACCEPTED)
64
+
- REACHED :scheduler has called at revealConsensus function (WorkOrder=ACCEPTED)
65
+
- FAILLED : claimFailedConsensus has been called. (WorkOrder=ABORTED)
66
+
- FINALIZED :finalizedWork has been successfully called (WorkOrder=COMPLETED)
67
+
68
+
69
+
Each worker Contribution of an accepted WorkOrder has a WorkStatus :
70
+
- REQUESTED : this worker has callForContribution by the scheduler
71
+
- SUBMITTED : this worker has contribute
72
+
- POCO_ACCEPT : this worker has reveal and is contribute is valid
73
+
- REJECTED : this worker has reveal and is contribute is not valid
- A(s) = [App](./contracts/App.sol) = app smart contract created by A(w) with the app characteristics
156
181
- A(r) = AppRepository = provide app reference on the responsability of A(w). . (apps, datas for apps in xtremweb, docker hub for docker app etc ... ) for W(p) usage
0 commit comments