Task DOES NOT proceed to IN_PROGRESS
Steps followed :
-
Created TaskDef [ { "name": "ais_post", "retryCount": 1, "timeoutSeconds": 600 } ]
-
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 }
-
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": {} } -
Workflow goes to RUNNING state - if wrong URL provided goes to FAILED state
-
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.
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
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.
Below are 2 observation:-
- 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?
- Creation of taskdef returns 204 is it expected. But searching taskdef shows the ais_post task.
Please advice.
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.

Once the URL referred in the task is accessible - no clue - please find the attached screen shot.
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" }
While there is no error in the console getting the submitted workflow API call( GET /workflow/{workflowId}) does not return and just hangs.
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.