Skip to content

Commit

Permalink
create financial updates queue
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed Dec 13, 2023
1 parent fa09b20 commit 2370bf6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/jobs/financial_reports_update_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class FinancialReportsUpdateJob
include Sidekiq::Job

def perform(*_args)
UpdateStatementOfWorkFinancialReports.update!
end
end
6 changes: 6 additions & 0 deletions config/sidekiq_cron_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ syncronize_time_entries:
cron: "every day"
class: "TimeEntriesJob"
queue: default

syncronize_financial_reports:
name: financial_reports_update_job, # must be uniq!
cron: "every day"
class: "FinancialReportsUpdateJob"
queue: default

0 comments on commit 2370bf6

Please sign in to comment.