You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.8 KiB
Markdown
67 lines
1.8 KiB
Markdown
# Submissions flow
|
|
|
|
It's assumed that readers understand [[Architecture]], [[Terminology]], [[Communication]] and [[Assignments Overview]]. This article will describe in detail execution flow of submission from the point of submission into web application to the point of evaluation of results from execution.
|
|
|
|
|
|
## Web Application
|
|
|
|
First thing user has to submit his/her solution to web application. Generally web application has to store submitted files and hand over all needed information about submission to broker. More detailed description follows:
|
|
|
|
- user submits his solution to web application
|
|
- T
|
|
- O
|
|
- D
|
|
- O
|
|
- .
|
|
- .
|
|
- .
|
|
- .
|
|
|
|
## Broker
|
|
|
|
Broker gets information about new submission from web application. At this point broker has to find suitable worker for execution of this particular submission. When worker is found and is jobless, then broker send detailed submission to worker to evaluation. More detailed description follows:
|
|
|
|
- T
|
|
- O
|
|
- D
|
|
- O
|
|
- .
|
|
- .
|
|
- .
|
|
|
|
## Worker
|
|
|
|
Worker gets request from broker to evaluate particular submission. Next step is to evaluate given submission and results upload to fileserver. After this worker only send broker that submission was evaluated. More detailed description follows:
|
|
|
|
- T
|
|
- O
|
|
- D
|
|
- O
|
|
- .
|
|
- .
|
|
- .
|
|
|
|
## Broker
|
|
|
|
Broker gets done message from worker and basically only mark submission as done in its internal structures. No messages are send to web application, because of lazy evaluation on frontend side. More detailed description follows:
|
|
|
|
- T
|
|
- O
|
|
- D
|
|
- O
|
|
- .
|
|
- .
|
|
- .
|
|
|
|
## Web Application
|
|
|
|
Only remaining part is evaluation of results. This is provided on demand when user wants them. Results are obtained from fileserver and evaluated. More detailed description follows:
|
|
|
|
- evaluation of execution results is provided on user demand
|
|
- T
|
|
- O
|
|
- D
|
|
- O
|
|
- .
|
|
- .
|
|
- . |