MENU
      executeJob

        executeJob


        Article summary

        Run the task.

        POST https://dataflow.apigw.ntruss.com/api/v1/jobs/{jobId}/executions
        HTTP

        Request

        Request parameter

        Parameter nameRequiredTypeRestrictionsDescription
        jobIdYesStringTask ID
        workflowIdNoStringWorkflow ID
        triggerIdNoStringTrigger ID

        Request body

        Parameter nameRequiredTypeRestrictionsDescription
        jobCondition.workerTypeNoStringDEFAULTWorker type
        jobCondition.numWorkerNoNumber2 - 10Number of workers
        jobCondition.timeoutNoNumberDefault: 360 minutes, maximum: 1440 minutes (24 hours)Execution timeout
        jobCondition.nrnYesStringPolicy NRN
        jobCondition.scriptPathYesStringExecutable script storage path
        jobCondition.logPathYesStringExecution log storage path
        parametersNoObjectExecution parameters

        Response

        Field nameTypeDescriptionRemarks
        jobIdStringTask ID
        jobExecutionIdStringJob execution ID
        statusStringJob status
        jobCondition.workerTypeStringWorker type
        jobCondition.numWorkerNumberNumber of workers
        jobCondition.timeoutNumberExecution timeout
        jobCondition.nrnStringPolicy NRN
        jobCondition.scriptPathStringExecutable script storage path
        jobCondition.logPathStringExecution log storage path
        createdDateStringJob creation date

        Response status

        HTTP StatusDesc
        200OK (execution completed)
        400Bad Request
        401Unauthorized
        403Forbidden
        404Not Found
        500Internal Server Error

        Examples

        Request example

        POST /api/v1/jobs/5Yns7JgRt25f/executions
        
        Host: dataflow.apigw.ntruss.com
        x-ncp-iam-access-key: {Access key}
        x-ncp-apigw-signature-v2: {API GW signature}
        x-ncp-apigw-timestamp: {timestamp}
        
        {
          "jobCondition": {
            "workerType": "DEFAULT",
            "numWorker": 2,
            "timeout": 360,
            "nrn": "nrn:PUB:IAM::0000:Role/000000-b123-11aa-b1b1-053256a72429",
            "scriptPath": "dataflow-172686404/scripts/",
            "logPath": "dataflow-172686404/sparkHistoryLogs/"
          },
          "parameters": {
            "$table_name": "test.sample_table2"
          }
        }
        HTTP

        Response example

        {
            "jobExecutionId": "4Yz7GaZjhqBq",
            "jobId": "5Yns7JgRt25f",
            "jobCondition": {
                "workerType": "DEFAULT",
                "numWorker": 2,
                "timeout": 360,
                "nrn": "nrn:PUB:IAM::0000:Role/000000-b123-11aa-b1b1-053256a72429",
                "scriptPath": "dataflow-172686404/scripts/",
                "logPath": "dataflow-172686404/sparkHistoryLogs/"
            },
            "status": "READY",
            "createdDate": "2023-10-23T12:25:24.459"
        }
        JSON

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.