Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.
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

Description

@jonasfj

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?

Activity

jonasfj commented on Oct 6, 2017

@jonasfj
ContributorAuthor

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 commented on Feb 2, 2018

@Biboswan
Contributor

Is the main part of the issue live yet ?

jonasfj commented on Feb 2, 2018

@jonasfj
ContributorAuthor

Is the main part of the issue live yet ?

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

Biboswan commented on Feb 3, 2018

@Biboswan
Contributor

jonasfj commented on Feb 3, 2018

@jonasfj
ContributorAuthor

Biboswan commented on Feb 4, 2018

@Biboswan
Contributor

I think there is nothing like listener.unbind

jonasfj commented on Feb 4, 2018

@jonasfj
ContributorAuthor

Biboswan commented on Feb 23, 2018

@Biboswan
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 join this conversation on GitHub. Already have an account? Sign in to comment

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