Skip to content

Commit

Permalink
Add comment for fugit (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0thentr0py committed Jan 2, 2024
1 parent 3ea9e79 commit 49a628e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions sentry-sidekiq/lib/sentry/sidekiq-scheduler/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def new_job(name, interval_type, config, schedule, options)
# so we convert it to minutes before passing in to the monitor.
monitor_config = case interval_type
when "cron"
# fugit is a second order dependency of sidekiq-scheduler via rufus-scheduler
parsed_cron = ::Fugit.parse_cron(schedule)
timezone = parsed_cron.timezone

Expand Down
1 change: 0 additions & 1 deletion sentry-sidekiq/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def perform
end
end

class HappyWorkerForCron < HappyWorker; end
class HappyWorkerForCron < HappyWorker; end
class HappyWorkerForScheduler < HappyWorker; end
class HappyWorkerForSchedulerWithTimezone < HappyWorker; end
Expand Down

0 comments on commit 49a628e

Please sign in to comment.