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

cd $(dirname $0)/..

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