Replies: 3 comments 2 replies
-
Hi @azriel46d , Queues: it appears there are no completed queues set by default. My OSS is connected to AWS SQS where we have COMPLETED and FAILED queues - so these endpoints work for me. If i understand - your worker does some work and it either "passes" or "fails". If it fails - more stuff (outside Conductor needs to be done... you can query api/workflow/{workflowId} and see all of the tasks inside the workflow - so you could extract outputs from other tasks (not just the WAIT) if needed. Doug |
Beta Was this translation helpful? Give feedback.
-
@azriel46d The endpoint only works if you have event queues (e.g. SQS integration) configured. We plan on sending a PR that allows you to accomplish the same without needing event queues. I will update this thread once the PR is sent. Meanwhile, you can use the following API to accomplish the same: |
Beta Was this translation helpful? Give feedback.
-
@v1r3n @dougsillars Thanks for the comments. In fact the only way I managed to get it to work was utilising
Hope this clarifies it a bit more. If the POST above can be done using the taskReferenceName instead of the ID it would make step 2 redundant. |
Beta Was this translation helpful? Give feedback.
-
The documentation lists that a wait node can be terminated using
POST api/queue/update/{workflowId}/{taskRefName}/{status}
However, with the below definition of my
WAIT
nodeI am not able to trigger the POST request successfully.
for
workflowId
I am using theworkflowInstanceId
and the task reference name from the above definition is used.The response I get however is:
Also checking the queue for the
WAIT
node is always set to zero.The above also brings about another question. Most times a
SIMPLE
node needs to hold information about an upcomingWAIT
node.( a scenario i have for example is that a TASK X needs to do some validations, if they fail a user goes in to a separate tool , and triggers the adjustment/approval , which would be the wait hit a separate microservice API call and do some additional work and call the wait node once complete)
The way I figured was that the SDKs provide the
workflowInstanceId
and the I'd pass in as part of the inputs the reference name to theWAIT
node. What is the best practice for this?Beta Was this translation helpful? Give feedback.
All reactions