You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 12, 2019. It is now read-only.
Inspector creates a task and a group listener #353
We should just probably only create one listener...
Ie. listen for all events that has to do with the given taskGroupId, since we're always loading the full task group anyways right?
We don't have to listen for artifacts separately either... Just make a single pattern with the taskGroupId and bind all the exchanges.
This could reduce load on tc-events quite a bit... Right now there is a lot of reconnects all the time :)
@eliperelman,
Also is it possible that we could use something like https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API to detect if we should reconnect or not?
Obviously, if user hit the "notify me on changes" button to get desktop notifications when the task changes, when we have to reconnect... Is it possible that there is another API we could use to detect if the user is away from the computer?
True, you have to stop listening and create a new listener...
In future we might get that, that I filed an RFC for someone to rewrite
taskcluster-events and add unbind support. I think this will be a GSoC
proposal if we get a slot..
See: taskcluster/taskcluster-rfcs#104
https://github.com/taskcluster/taskcluster-tools/blob/master/src/views/UnifiedInspector/Inspector.js
We should just probably only create one listener...
Ie. listen for all events that has to do with the given taskGroupId, since we're always loading the full task group anyways right?
We don't have to listen for artifacts separately either... Just make a single pattern with the taskGroupId and bind all the exchanges.
This could reduce load on tc-events quite a bit... Right now there is a lot of reconnects all the time :)
@eliperelman,
Also is it possible that we could use something like https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API to detect if we should reconnect or not?
Obviously, if user hit the "notify me on changes" button to get desktop notifications when the task changes, when we have to reconnect... Is it possible that there is another API we could use to detect if the user is away from the computer?