Skip to content

Commit

Permalink
Setup CloudScheduler rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
ceritium committed Feb 4, 2023
1 parent 66926bf commit eac5086
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/tasks/setup_cloud_scheduler.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

ENV['GOOGLE_AUTH_SUPPRESS_CREDENTIALS_WARNINGS'] ||= 'true'

namespace :cloudtasker do
DEFAULT_FILE = 'config/cloudtasker_cron.yml'

desc "Setup CloudScheduler. (default options: file=#{DEFAULT_FILE})"
task setup_cloud_scheduler: :environment do
Cloudtasker::CloudScheduler::Manager.synchronize!(DEFAULT_FILE)
end
end

0 comments on commit eac5086

Please sign in to comment.