Commit 688121f
fixing scheduler for precription summary refresh cron (#5777)
**Story card:**
[SIMPLEBACK-77](SIMPLEBACK_77_fix_prescription_summary_refresh_job)
## Because
Scheduler for refreshing reporting_patient_prescriptions is expected to
do a refresh of last 3 months dynamically. But it was scheduled to run
for fixed dates
## This addresses
From the scheduler we are passing how many months in the past we want a
refresh for, which will be evaluated in the rake task to perform a
refresh
## Test instructions
rake reporting:refresh_partitioned_table[#{reporting_table_name},
#{months_back}]
This should perform a refresh for the table passed as arg[1], for those
many months in the past as passed under arg[2]
---------
Co-authored-by: Ayushi Agrawal <ayushiagrawal@RTSL-P172G93770.local>1 parent 26f823f commit 688121f
2 files changed
Lines changed: 24 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
| 143 | + | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
0 commit comments