Closed Bug 1194495 Opened 9 years ago Closed 9 years ago

[MozillaPulse] Add consumer for the TaskCluster exchanges

Categories

(Webtools :: Pulse, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(2 files, 1 obsolete file)

There is no consumer for the TaskCluster exchange yet. We should get this added.

http://docs.taskcluster.net/queue/exchanges/

I will dig into this tomorrow.
There are multiple exchanges defined and we also need a publisher for it.
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Summary: [MozillaPulse] Add consumer for the TaskCluster exchange → [MozillaPulse] Add consumer/publisher for the TaskCluster exchanges
Bug 1180897 implemented the multiple exchange feature recently. So i will make of it even it will be hard to figure out which topic to set given that 7 exchanges are present. The constructor will look like the following in case you are interested in completed tasks only:

pulse.configure(topic=['', '', '', '', '#', '', ''], [..])
Depends on: 1194653
Attached patch taskcluster (obsolete) — Splinter Review
This patch should add everything. Sadly the tests are failing and I do not know why. Jonathan, do you have an idea?
Attachment #8648124 - Flags: feedback?(jgriffin)
Given that we wont publish to taskcluster this is for consumers only.
Summary: [MozillaPulse] Add consumer/publisher for the TaskCluster exchanges → [MozillaPulse] Add consumer for the TaskCluster exchanges
Attached patch taskcluster v2Splinter Review
The problem here was that I missed to update the configuration for taskcluster with the local host settings. That's why it tried to connect to pulse.mozilla.org, which can indeed not work.
Attachment #8648124 - Attachment is obsolete: true
Attachment #8648124 - Flags: feedback?(jgriffin)
Attachment #8648228 - Flags: review?(jgriffin)
Attachment #8648228 - Flags: review?(jgriffin) → review+
https://pypi.python.org/pypi/MozillaPulse/1.2
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Sadly to the final slashes of the exchange values the consumer does not work and errors out with:

> Error occurred during pulse.listen(): Exchange.declare: (404) NOT_FOUND - no exchange 'exchange/taskcluster-queue/v1/task-completed/' in vhost '/'

I haven't thought that this is important. But given it is we need a follow-up patch here with the removal of those two trailing slashes. :/
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry, but it wasn't clear to me that it makes such a difference. :/
Attachment #8648630 - Flags: review?(jgriffin)
Attachment #8648630 - Flags: review?(jgriffin) → review+
https://hg.mozilla.org/automation/mozillapulse/rev/e6d10b16c666
https://pypi.python.org/pypi/MozillaPulse/1.2.1
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: