Skip to main content

Gerrit event queue

Project description

gerritqueue

PyPI License

Gerrit Queue is a Gerrit event queue using Redis.

Requirements

  • Python (3.7+)
  • pip
  • redis

Installation

apt update
apt install python3-dev python3-pip python3-setuptools
pip install gerritqueue

Updating

pip install gerritqueue --upgrade

Running

gerritqueue \
  --config-file config.json \
  --gerrit-query "change:1"

Settings

Gerrit Queue parameters can be set in the file of config.json.

An example of configuration in config.json

{
  "gerrit": {
    "debug": false,
    "host": "localhost",
    "pass": "pass",
    "port": 80,
    "query": {
      "option": ["CURRENT_REVISION"]
    },
    "user": "user"
  },
  "redis": {
    "db": 0,
    "debug": false,
    "hash": {
      "expire": {
        "days": 1
      },
      "name": "_number",
      "value": "current_revision"
    },
    "host": "localhost",
    "pass": "pass",
    "port": 6379
  }
}

Redis

Name           Value
CHANGE_NUMBER  CURRENT_REVISION

License Apache

Project License can be found here.

Project details


Download files

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

Files for gerritqueue, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size gerritqueue-1.0.2-py2.py3-none-any.whl (9.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size gerritqueue-1.0.2.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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