Skip to content

Commit ac9bac2

Browse files
Add delayed cron job that is executed once a month and reates department skills snapshots
1 parent a35bb91 commit ac9bac2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class MonthlyDepartmentSkillsSnapshotJob < CronJob
2+
# Perform job on first day of month at 3am
3+
self.cron_expression = '0 3 1 * *'
4+
5+
def perform
6+
DepartmentSkillsSnapshotBuilder.new.snapshot_all_departments
7+
end
8+
end

0 commit comments

Comments
 (0)