File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ ACHGateway:
183
183
Timezone : <string>
184
184
Windows :
185
185
- <string>
186
+ [ On : <string> | default = "banking-days" ] # banking-days or all-days
186
187
PreUpload :
187
188
GPG : # Optional
188
189
KeyFile : <string>
Original file line number Diff line number Diff line change @@ -128,13 +128,12 @@ func (xfagg *aggregator) Start(ctx context.Context) {
128
128
// process automated cutoff time triggering
129
129
case day := <- xfagg .cutoffs .C :
130
130
// Run our regular routines
131
- if day .IsBankingDay {
131
+ if day .IsBankingDay || xfagg . shard . Cutoffs . On == "all-days" {
132
132
if err := xfagg .withEachFile (day .Time ); err != nil {
133
133
err = xfagg .logger .Error ().LogErrorf ("merging files: %v" , err ).Err ()
134
134
xfagg .alertOnError (err )
135
135
}
136
- }
137
- if day .IsHoliday && ! day .IsWeekend {
136
+ } else if day .IsHoliday && ! day .IsWeekend {
138
137
xfagg .notifyAboutHoliday (day )
139
138
}
140
139
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ func (cfg Shard) Validate() error {
107
107
type Cutoffs struct {
108
108
Timezone string
109
109
Windows []string
110
+ On string
110
111
}
111
112
112
113
func (cfg Cutoffs ) Location () * time.Location {
You can’t perform that action at this time.
0 commit comments