Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A pulse listener that acts upon messages with mozci.

Project description

This project is Pulse listener that listens to Treeherder’s job cancellation and retrigger actions in ‘exchange/treeherder/v1/job-actions’ and acts upon them.

What it does

  • listens to exchange/treeherder/v1/job-actions in an infinite loop.
  • When it sees a retrigger actions it makes a retrigger request in builapi self-serve using make_retrigger_request from mozci.
  • When it sees a cancel action it makes a cancel request in buildapi self-serve using make_cancel_request from mozci.
  • Currently everything is run with dry_run=True, so instead of doing requests the script just logs the requests it would have made.

Current status

  • reads exchange and topic from run_time_config.json. It then uses HANDLERS_BY_EXCHANGE, a dictionary defined in to decide what function it will use to handle incoming messages.
  • Only buildbot topics (e.g. buildbot.#.# or buildbot.try.retrigger) in exchange/treeherder/v1/job-actions are supported for now.
  • The functions to deal with TH’s job-actions are defined in the module


  • mozci
  • mozillapulse

See bug 1168148 for more details.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pulse-actions-0.1.3.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None May 28, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page