Sha256: 5eaa0dd83e70d041e56bd1c762d090ac082aae6052b4feb30e15beb0e48b05cd

Contents?: true

Size: 422 Bytes

Versions: 18

Compression:

Stored size: 422 Bytes

Contents

namespace :cron do
  desc "Updates deployed revisions"
  task minutely: :environment do
    Shipit::Stack.refresh_deployed_revisions
  end

  desc "Rolls-up output chunks for completed deploys older than an hour"
  task rollup: :environment do
    Shipit::Task.due_for_rollup.find_each(&:schedule_rollup_chunks)
  end

  task refresh_users: :environment do
    Shipit::User.refresh_shard(Time.now.hour % 24, 24)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
shipit-engine-0.10.0 lib/tasks/cron.rake
shipit-engine-0.9.0 lib/tasks/cron.rake
shipit-engine-0.8.9 lib/tasks/cron.rake
shipit-engine-0.8.8 lib/tasks/cron.rake
shipit-engine-0.8.7 lib/tasks/cron.rake
shipit-engine-0.8.6 lib/tasks/cron.rake
shipit-engine-0.8.5 lib/tasks/cron.rake
shipit-engine-0.8.4 lib/tasks/cron.rake
shipit-engine-0.8.3 lib/tasks/cron.rake
shipit-engine-0.8.2 lib/tasks/cron.rake
shipit-engine-0.8.1 lib/tasks/cron.rake
shipit-engine-0.8.0 lib/tasks/cron.rake
shipit-engine-0.7.0 lib/tasks/cron.rake
shipit-engine-0.6.4 lib/tasks/cron.rake
shipit-engine-0.6.3 lib/tasks/cron.rake
shipit-engine-0.6.2 lib/tasks/cron.rake
shipit-engine-0.6.1 lib/tasks/cron.rake
shipit-engine-0.6.0 lib/tasks/cron.rake