summaryrefslogtreecommitdiff
path: root/bin/background_jobs
blob: cbc501094c43661b05edc26fcbfb4344f07846d3 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

cd $(dirname $0)/.. || exit 1

if [ -n "$SIDEKIQ_WORKERS" ] ; then
  exec bin/background_jobs_sk_cluster "$@"
else
  exec bin/background_jobs_sk "$@"
fi