Sha256: 978faec4c0a12c9d7851689e6343845612ce4430cf6b743741e77fef17846e5f
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
namespace :cron do desc "Updates deployed revisions" task minutely: :environment do Shipit::Stack.refresh_deployed_revisions Shipit::Stack.schedule_continuous_delivery Shipit::GithubStatus.refresh_status end task hourly: [:rollup, :purge_deliveries, :refresh_users] 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 desc "Delete old hook delivery records" task purge_deliveries: :environment do Shipit::Delivery.due_for_deletion.delete_all end task refresh_users: :environment do Shipit::User.refresh_shard(Time.now.hour % 24, 24) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shipit-engine-0.15.0 | lib/tasks/cron.rake |