项目作者: bringg

项目描述 :
RabbitMQ Executor for dkron.io
高级语言: Go
项目地址: git://github.com/bringg/dkron-executor-rabbitmq.git
创建时间: 2018-05-08T20:16:57Z
项目社区:https://github.com/bringg/dkron-executor-rabbitmq

开源协议:MIT License

下载


dkron-executor-rabbitmq

RabbitMQ Executor for dkron that publishes given message to given queue
example:

  1. {
  2. "name": "send_emails",
  3. "schedule": "@every 1m",
  4. "shell": false,
  5. "executor": "rabbitmq",
  6. "executor_config": {
  7. "queue_name": "email-service",
  8. "payload": "{\"email\": \"yosi@email.com\", \"subject\": \"hello world\"}"
  9. },
  10. "disabled": false
  11. }

configuration

In order for dkron-executor-rabbitmq to know which rabbitmq it should connect, you need to pass configuration, there are multiple options:

  • Next to config/dkron.json, create config/dkron-executor-rabbitmq.json with content { "rabbit_host": "..." }
  • Specify environment variable - DKRON_EXECUTOR_RABBITMQ_RABBIT_HOST with the rabbit host