You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Aydar Zaynutdinov (Jira)" <ji...@apache.org> on 2021/11/10 14:39:00 UTC

[jira] [Created] (BEAM-13216) [Playground] Add client to send found tagged file to the backend

Aydar Zaynutdinov created BEAM-13216:
----------------------------------------

             Summary: [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


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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)