conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Task DOES NOT proceed to IN_PROGRESS

Open sudvarma opened this issue 8 years ago • 7 comments

Steps followed :

  1. Created TaskDef [ { "name": "ais_post", "retryCount": 1, "timeoutSeconds": 600 } ]

  2. Created Workflow Def

{ "name": "Booking_Orch", "correlationId": "23", "description": "Booking workflow", "version": 1, "tasks": [ { "type": "HTTP", "name": "ais_post", "taskReferenceName": "save_ais_booking", "inputParameters": { "http_request": { "uri": "${workflow.input.ais_post_url}", "method": "POST", "body": "${workflow.input.ais_post_body}", "Accept": "application/json", "Content-Type": "application/json" } } } ], "schemaVersion": 2 }

  1. Started Workflow with input parameters { "name": "Booking_Orch", "version": 1, "correlationId": "23", "input": { "ais_post_url": "http://:/service/us/32818/problems/search",
    "ais_post_body": { "status": [ "NEW", "ERROR", "ASSIGNED", "WORK_IN_PROGRESS", "ANSWERED" ] } }, "taskToDomain": {} }

  2. Workflow goes to RUNNING state - if wrong URL provided goes to FAILED state

  3. Polls for task "ais_task" [/tasks/poll/{tasktype}] Returns 204 - with no response. The task doesn't proceed.

Polling for sample kitchensink workflow's task_1 returns 200 with proper response and task proceeds to IN_PROGRESS. Tried with both "memory" option and "dynomite" option in the config.properties

Are there any additional steps needed - please advice.

sudvarma avatar Jun 27 '18 02:06 sudvarma

HTTP is the system task. The workflow will be in running state. what is the state of the task ais_post? I guess it is in IN_PROGESS

You can only poll a task with SCHEDULED state. Not an IN_PROGESS or COMPLETED tasks

jvemugunta avatar Jun 27 '18 12:06 jvemugunta

The workflow goes into RUNNING state. But no clue about the state of the task. /tasks/in_progress/ais_post API returns no valid task.

sudvarma avatar Jun 28 '18 03:06 sudvarma

Below are 2 observation:-

  1. Sometimes I get to see this error after starting work flow -

conductor-server_1 | Caused by: java.lang.RuntimeException: com.netflix.dyno.connectionpool.exception.PoolTimeoutException: PoolTimeoutException: [host=Host [hostname=dyno1, ipAddress=null, port=8102, rack: us-east-1c, datacenter: us-east-1, status: Up], latency=800143(0), attempts=0]Fast fail waiting for connection from pool

The config.properties has "db=memory" set so could this be ignored?

  1. Creation of taskdef returns 204 is it expected. But searching taskdef shows the ais_post task.

Please advice.

sudvarma avatar Jun 28 '18 04:06 sudvarma

Incase the URL referred in the task is made not accessible - the workflow fails promptly on starting the workflow. No error in logs. Please find the attached screenshot. screen shot 2018-06-28 at 11 42 54 am screen shot 2018-06-28 at 11 42 13 am

sudvarma avatar Jun 28 '18 06:06 sudvarma

Once the URL referred in the task is accessible - no clue - please find the attached screen shot.

screen shot 2018-06-28 at 12 07 02 pm screen shot 2018-06-28 at 12 07 15 pm

Is there a way to dump the output from task/workflow? The output is JSON.

====================================================== A few times after a while - i see the below error being printed in the prompt conductor-server_1 | Caused by: com.netflix.dyno.connectionpool.exception.PoolTimeoutException: PoolTimeoutException: [host=Host [hostname=dyno1, ipAddress=null, port=8102, rack: us-east-1c, datacenter: us-east-1, status: Up], latency=800444(0), attempts=0]Fast fail waiting for connection from pool

Once the error - all operations fails with { "code": "INTERNAL_ERROR", "message": "INTERNAL_ERROR - PoolTimeoutException: [host=Host [hostname=dyno1, ipAddress=null, port=8102, rack: us-east-1c, datacenter: us-east-1, status: Up], latency=800466(0), attempts=0]Fast fail waiting for connection from pool", "instance": "d1fa096c7624" }

sudvarma avatar Jun 28 '18 06:06 sudvarma

While there is no error in the console getting the submitted workflow API call( GET /workflow/{workflowId}) does not return and just hangs.

sudvarma avatar Jun 28 '18 12:06 sudvarma

From the logs and error messages posted above, it seems that dynomite is not setup correctly to be used. Please follow the documentation here to ensure your configuration is correct.

apanicker-nflx avatar Mar 12 '19 00:03 apanicker-nflx