Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Inspector creates a task and a group listener #353

Open
jonasfj opened this issue Oct 6, 2017 · 8 comments
Open

Inspector creates a task and a group listener #353

jonasfj opened this issue Oct 6, 2017 · 8 comments

Comments

@jonasfj
Copy link
Contributor

jonasfj commented Oct 6, 2017

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?

@jonasfj
Copy link
Contributor Author

jonasfj commented Oct 6, 2017

Note: this is not high priority it just creates some noise in tc-events log, and in pulseguardian logs..

But I suspect it might also put a bit of load on the browsers, so it might be worth while fixing for better end-user experience.

@Biboswan
Copy link
Contributor

Biboswan commented Feb 2, 2018

Is the main part of the issue live yet ?

@jonasfj
Copy link
Contributor Author

jonasfj commented Feb 2, 2018

Is the main part of the issue live yet ?

I'm not sure what you mean? Can you elaborate a bit...

@Biboswan
Copy link
Contributor

Biboswan commented Feb 3, 2018 via email

@jonasfj
Copy link
Contributor Author

jonasfj commented Feb 3, 2018 via email

@Biboswan
Copy link
Contributor

Biboswan commented Feb 4, 2018

I think there is nothing like listener.unbind

@jonasfj
Copy link
Contributor Author

jonasfj commented Feb 4, 2018 via email

@Biboswan
Copy link
Contributor

Left working on this just thought no around is available at the moment. But looking into this issue again and not sure yet but i think including channel.unbindQueue from amqplib https://github.com/taskcluster/taskcluster-client/blob/master/src/pulselistener.js is a way to add unbind feature for the weblistener atleast.

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

No branches or pull requests

2 participants