Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

notify users of job status #26

Closed
g-k opened this issue Dec 4, 2017 · 6 comments
Closed

notify users of job status #26

g-k opened this issue Dec 4, 2017 · 6 comments

Comments

@g-k
Copy link
Contributor

g-k commented Dec 4, 2017

It'd be nice to have a way to show an running action's status and errors in the TC dashboard.

Possible options:

@g-k
Copy link
Contributor Author

g-k commented Dec 4, 2017

@helfi92 any recommendations for this?

@helfi92
Copy link

helfi92 commented Dec 5, 2017

Hey @g-k, right now we currently await on the action request and show a green banner if the request resolves without throwing. If the user is missing scopes, then we show an error.

There isn't something in place right now to show a real-time update of a request status. If the request takes 10 seconds for example, then there will be a loading spinner until that request returns something. I'm not sure we want to handle continuous status update for now since we'll be dealing with many different domains.

You can see https://github.com/taskcluster/taskcluster-tools/blob/master/src/views/WorkerManager/WorkerManager.js#L169-L199 for the method where we handle the request. Hope that helps.

@helfi92
Copy link

helfi92 commented Dec 5, 2017

@g-k To notify users with the action status, you could look into taskcluster-notify.

@helfi92
Copy link

helfi92 commented Dec 5, 2017

Also, it's better if the action endpoint returns early. In other words, if the action takes a while, start it up and send the HTTP response.

@helfi92
Copy link

helfi92 commented Dec 5, 2017

@g-k To interact with the taskcluster-notify service, use taskcluster/taskcluster-client#methods-in-taskclusternotify.

@g-k g-k added this to To Do in cleanup for production Dec 5, 2017
@g-k g-k changed the title display job status in TC dashboard notify users of job status Dec 5, 2017
@g-k
Copy link
Contributor Author

g-k commented Dec 5, 2017

+1 for notifications. These will probably take >10 seconds run.

cleanup for production automation moved this from To Do to Done Nov 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

No branches or pull requests

3 participants