Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task Error propagation from agent #4

Open
HHeermann opened this issue Nov 6, 2019 · 0 comments
Open

Task Error propagation from agent #4

HHeermann opened this issue Nov 6, 2019 · 0 comments

Comments

@HHeermann
Copy link

HHeermann commented Nov 6, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant