Skip to content

Task Error propagation from agent #4

@HHeermann

Description

@HHeermann

Agent needs to handle exceptions coming from

  • adapter
  • agent itself

Moreover in any case the payload that the agent returns will have this format:

{
“error”: false,
“statusCode”: 200,
“statusCodeReason”: “OK. Task status retrieved.”,
“message”: [
{
“taskId”: “048d4788-243f-4fa5-a9cd-02fe5c554077”,
“status”: “running”,
“createdAt”: “2018-10-04 14:13:16”,
“startTime”: “2018-10-04 14:13:17”,
“totalTime”: 255541,
“returnValue”: “{\n\t\”progress\“: 56\n}”
}
]
}

In case of error (status code!=200), “message” will be an empty array. In case of 200 status code, message will be the response coming from the adapter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions