Skip to content

Commit fcfb17a

Browse files
Add flag to avoid kafka and gRPC data dupplication in Bookkeeping (#657)
* Add flag to disable kafka sending gRPC requests on enviornment update * Condition applies also on run * Update readout-dataflow.yaml
1 parent ccd2727 commit fcfb17a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

workflows/readout-dataflow.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,7 @@ defaults:
13861386
# Other variables
13871387
###############################
13881388
bookkeeping_enabled: "true"
1389+
bookkeeping_consuming_kafka: "false"
13891390
ccdb_enabled: "false"
13901391
dpl_workflow: none
13911392
dpl_command: none
@@ -2098,6 +2099,7 @@ roles:
20982099
enabled: "{{bookkeeping_enabled == 'true'}}"
20992100
roles:
21002101
- name: startrun
2102+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21012103
call:
21022104
func: bookkeeping.StartOfRun()
21032105
trigger: before_START_ACTIVITY+10
@@ -2110,84 +2112,98 @@ roles:
21102112
timeout: 10s
21112113
critical: false
21122114
- name: updaterunstart
2115+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21132116
call:
21142117
func: bookkeeping.UpdateRunStart()
21152118
trigger: after_START_ACTIVITY+100
21162119
timeout: 10s
21172120
critical: false
21182121
- name: updaterunstop
2122+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21192123
call:
21202124
func: bookkeeping.UpdateRunStop()
21212125
trigger: after_STOP_ACTIVITY+100
21222126
timeout: 10s
21232127
critical: false
21242128
- name: updaterungoerror
2129+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21252130
call:
21262131
func: bookkeeping.UpdateRunStop()
21272132
trigger: after_GO_ERROR+100
21282133
timeout: 10s
21292134
critical: false
21302135
- name: updaterundestroy
2136+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21312137
call:
21322138
func: bookkeeping.UpdateRunStop()
21332139
trigger: DESTROY
21342140
timeout: 10s
21352141
critical: false
21362142
- name: startenv
2143+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21372144
call:
21382145
func: bookkeeping.CreateEnv()
21392146
trigger: before_DEPLOY
21402147
timeout: 10s
21412148
critical: false
21422149
- name: deploy
2150+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21432151
call:
21442152
func: bookkeeping.UpdateEnv()
21452153
trigger: after_DEPLOY+100
21462154
timeout: 10s
21472155
critical: false
21482156
- name: configure
2157+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21492158
call:
21502159
func: bookkeeping.UpdateEnv()
21512160
trigger: after_CONFIGURE+100
21522161
timeout: 10s
21532162
critical: false
21542163
- name: reset
2164+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21552165
call:
21562166
func: bookkeeping.UpdateEnv()
21572167
trigger: after_RESET+100
21582168
timeout: 10s
21592169
critical: false
21602170
- name: start
2171+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21612172
call:
21622173
func: bookkeeping.UpdateEnv()
21632174
trigger: after_START_ACTIVITY+100
21642175
timeout: 10s
21652176
critical: false
21662177
- name: stop
2178+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21672179
call:
21682180
func: bookkeeping.UpdateEnv()
21692181
trigger: after_STOP_ACTIVITY+100
21702182
timeout: 10s
21712183
critical: false
21722184
- name: exit
2185+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21732186
call:
21742187
func: bookkeeping.UpdateEnv()
21752188
trigger: after_EXIT
21762189
timeout: 10s
21772190
critical: false
21782191
- name: goerror
2192+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21792193
call:
21802194
func: bookkeeping.UpdateEnv()
21812195
trigger: after_GO_ERROR+100
21822196
timeout: 10s
21832197
critical: false
21842198
- name: recover
2199+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21852200
call:
21862201
func: bookkeeping.UpdateEnv()
21872202
trigger: after_RECOVER+100
21882203
timeout: 10s
21892204
critical: false
21902205
- name: destroy
2206+
enabled: "{{ bookkeeping_consuming_kafka != 'true' }}"
21912207
call:
21922208
func: bookkeeping.UpdateEnv()
21932209
trigger: DESTROY

0 commit comments

Comments
 (0)