[
https://issues.apache.org/jira/browse/BEAM-13216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aydar Zaynutdinov updated BEAM-13216:
-------------------------------------
Description:
Need to add a client to send a request to the backend with code from found
tagged file.
Steps:
# Call RunCode() method with code from tagged file + correct SDK (defined by
file's extension).
# Receive the pipelineId of the code.
# Call CheckStatus() method with received pipelineId.
# Receive status.
# If the received status is
STATUS_VALIDATION_ERROR/STATUS_PREPARATION_ERROR/STATUS_COMPILE_ERROR/STATUS_ERROR,
then this example has some error and the whole step is failed. Need to print a
message about the error.
# If the received status is STATUS_RUN_ERROR, then this example has some error
and the whole step is failed. Need to print a message about the error received
from GetRunError() method.
# If the received status is STATUS_RUN_TIMEOUT, then this example has some
error and the whole step is failed. Need to print a message about the error
timeout error.
# If the received status is STATUS_EXECUTING start to call go to step 3.
# If the received status is STATUS_FINISHED, then stop calling backend. Code
is worked as a beam playground example.
If the some request is failed it means that the example's code has some error
and the whole step is failed. Need to print a message about the error.
was:
Need to add a client to send a request to the backend with code from found
tagged file.
Steps:
# Call RunCode() method with code from tagged file + correct SDK (defined by
file's extension).
# Receive the pipelineId of the code.
# Call CheckStatus() method with received pipelineId.
# Receive status.
# If the received status is
STATUS_VALIDATION_ERROR/STATUS_PREPARATION_ERROR/STATUS_COMPILE_ERROR/STATUS_ERROR,
then this example has some error and the whole step is failed. Need to print a
message about the error.
# If the received status is STATUS_RUN_ERROR, then this example has some error
and the whole step is failed. Need to print a message about the error received
from GetRunError() method.
# If the received status is STATUS_RUN_TIMEOUT, then this example has some
error and the whole step is failed. Need to print a message about the error
timeout error.
# If the received status is STATUS_EXECUTING start to call GetRunError()
method to receive run output.
# If the received status is STATUS_FINISHED, then stop calling GetRunError()
method.
If the some request is failed it means that the example's code has some error
and the whole step is failed. Need to print a message about the error.
> [Playground] Add client to send found tagged file to the backend
> -----------------------------------------------------------------
>
> Key: BEAM-13216
> URL: https://issues.apache.org/jira/browse/BEAM-13216
> Project: Beam
> Issue Type: Sub-task
> Components: beam-playground
> Reporter: Aydar Zaynutdinov
> Assignee: Pavel Avilov
> Priority: P3
> Labels: beam-playground-backend
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Need to add a client to send a request to the backend with code from found
> tagged file.
> Steps:
> # Call RunCode() method with code from tagged file + correct SDK (defined by
> file's extension).
> # Receive the pipelineId of the code.
> # Call CheckStatus() method with received pipelineId.
> # Receive status.
> # If the received status is
> STATUS_VALIDATION_ERROR/STATUS_PREPARATION_ERROR/STATUS_COMPILE_ERROR/STATUS_ERROR,
> then this example has some error and the whole step is failed. Need to print
> a message about the error.
> # If the received status is STATUS_RUN_ERROR, then this example has some
> error and the whole step is failed. Need to print a message about the error
> received from GetRunError() method.
> # If the received status is STATUS_RUN_TIMEOUT, then this example has some
> error and the whole step is failed. Need to print a message about the error
> timeout error.
> # If the received status is STATUS_EXECUTING start to call go to step 3.
> # If the received status is STATUS_FINISHED, then stop calling backend. Code
> is worked as a beam playground example.
> If the some request is failed it means that the example's code has some error
> and the whole step is failed. Need to print a message about the error.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)