Files
canvas-lms/script/delayed_job
Cody Cutrer 42f30e69d4 ensure using the correct version of bundler for script/delayed_job
Change-Id: Iefeed24f9ef69ba53594cdafbd965f6d178c22dd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347850
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2024-05-22 21:26:43 +00:00

15 lines
415 B
Ruby
Executable File

#!/usr/bin/env ruby
# frozen_string_literal: true
ENV["RUNNING_AS_DAEMON"] = "true"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
# We avoid loading the whole rails environment here, so that commands like
# `status` and `start` return much faster.
require "bundler"
Bundler.self_manager.restart_with_locked_bundler_if_needed
require "bundler/setup"
require "delayed_job"
Delayed::CLI.new.run