# Scheduler Runner unit file
# Managed by puppet class profile::swh::deploy::scheduler
# Changes will be overwritten

[Unit]
Description=Software Heritage scheduler runner
Requires=network.target rabbitmq-server.service
After=network.target rabbitmq-server.service

[Service]
User=<%= @user %>
Group=<%= @group %>
Type=simple
ExecStart=/bin/sh -c 'while true; do echo running pending tasks at `/bin/date`...; /usr/bin/swh-scheduler --config-file <%= @config_file %> --log-level <%= @runner_log_level %> runner --period 0; sleep 10; done'
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

# Scheduler Runner unit file
# Managed by puppet class profile::swh::deploy::scheduler
# Changes will be overwritten

[Unit]
Description=Software Heritage scheduler runner
Requires=network.target rabbitmq-server.service
After=network.target rabbitmq-server.service

[Service]
User=<%= @user %>
Group=<%= @group %>
Type=simple
ExecStart=/usr/bin/swh-scheduler --config-file <%= @config_file %> --log-level <%= @runner_log_level %> runner --period 10
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Revert "swh-scheduler-runner: Transitory change to avoid the kombu issue"
Revert "swh-scheduler-runner: Transitory change to avoid the kombu issue"

This reverts commit 6ff4cdd30d33351374214eb27a95fafb6258b2e9.

kombu package updated to version 4.3.0-1~swh1~bpo9+1 (holding the fix)

Related T1491
