require 'cloudwatch_scheduler'

CloudwatchScheduler() do |_config|
  # every hour at 10 minutes past the hour
  task 'run_notifications', cron: '10 * * * *' do
    RunNotificationsService.new.call!
  end

  # every day at 5:00am
  task 'cleanup', cron: '0 5 * * *' do
    CleanupDbService.new.call!
  end
end

require 'cloudwatch_scheduler'

CloudwatchScheduler() do |_config|
  # every hour at 10 minutes past the hour
  task 'run_notifications', cron: '10 * * ? *' do
    RunNotificationsService.new.call!
  end

  # every day at 5:00am
  task 'cleanup', cron: '0 5 * ? *' do
    CleanupDbService.new.call!
  end
end

Use Amazon's weird cron syntax
Use Amazon's weird cron syntax
