Skip to content

Commit 67003d3

Browse files
authored
Align hook calls to follow the changes in OCTRL-902 (#655)
OCTRL-902 allows to place hooks before or after SOSOR, EOSOR, SOEOR and EOEOR timestamps are created. This PR moves the hook triggers so that the order of plugin execution is preserved and the information the plugins need is still available. Calls which are critical for a successful SOR and EOR are placed inside the SOSOR - EOEOR timestamp boundaries. Similarly, some other calls at after_<event>+0 are moved to after_<event>-1 to contribute to the transition, even if technically it does not change the perceived behaviour at the moment.
1 parent a55dc31 commit 67003d3

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

workflows/readout-dataflow.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,25 +1892,25 @@ roles:
18921892
call:
18931893
func: dcs.PrepareForRun()
18941894
trigger: before_CONFIGURE
1895-
await: after_CONFIGURE
1895+
await: after_CONFIGURE-1
18961896
timeout: "{{ dcs_pfr_timeout }}"
18971897
critical: false
18981898
- name: sor
18991899
call:
19001900
func: dcs.StartOfRun()
1901-
trigger: before_START_ACTIVITY
1901+
trigger: before_START_ACTIVITY+100
19021902
timeout: "{{ dcs_sor_timeout }}"
19031903
critical: true
19041904
- name: eor
19051905
call:
19061906
func: dcs.EndOfRun()
1907-
trigger: after_STOP_ACTIVITY
1907+
trigger: after_STOP_ACTIVITY-50
19081908
timeout: "{{ dcs_eor_timeout }}"
19091909
critical: true
19101910
- name: error-cleanup
19111911
call:
19121912
func: dcs.Cleanup()
1913-
trigger: after_GO_ERROR
1913+
trigger: after_GO_ERROR-1
19141914
timeout: "{{ dcs_cleanup_timeout }}"
19151915
critical: false
19161916
- name: destroy-cleanup
@@ -1926,13 +1926,13 @@ roles:
19261926
call:
19271927
func: ddsched.PartitionInitialize()
19281928
trigger: before_CONFIGURE
1929-
await: after_CONFIGURE
1929+
await: after_CONFIGURE-1
19301930
timeout: "{{ ddsched_initialize_timeout }}"
19311931
critical: true
19321932
- name: terminate
19331933
call:
19341934
func: ddsched.PartitionTerminate()
1935-
trigger: after_RESET
1935+
trigger: after_RESET-1
19361936
timeout: "{{ ddsched_terminate_timeout }}"
19371937
critical: true
19381938
- name: cleanup
@@ -1959,35 +1959,35 @@ roles:
19591959
call:
19601960
func: odc.PartitionInitialize()
19611961
trigger: before_DEPLOY
1962-
await: after_DEPLOY
1962+
await: after_DEPLOY-1
19631963
timeout: "{{ odc_partitioninitialize_timeout }}"
19641964
critical: true
19651965
- name: configure
19661966
call:
19671967
func: odc.Configure()
1968-
trigger: after_CONFIGURE
1969-
await: after_CONFIGURE
1968+
trigger: after_CONFIGURE-1
1969+
await: after_CONFIGURE-1
19701970
timeout: "{{ odc_configure_timeout }}"
19711971
critical: true
19721972
- name: start
19731973
call:
19741974
func: odc.Start()
1975-
trigger: before_START_ACTIVITY
1976-
await: after_START_ACTIVITY
1975+
trigger: before_START_ACTIVITY+100
1976+
await: after_START_ACTIVITY-10
19771977
timeout: "{{ odc_start_timeout }}"
19781978
critical: true
19791979
- name: stop
19801980
call:
19811981
func: odc.Stop()
19821982
trigger: before_STOP_ACTIVITY
1983-
await: after_STOP_ACTIVITY
1983+
await: after_STOP_ACTIVITY-50
19841984
timeout: "{{ odc_stop_timeout }}"
19851985
critical: true
19861986
- name: reset
19871987
call:
19881988
func: odc.Reset()
19891989
trigger: before_RESET
1990-
await: after_RESET
1990+
await: after_RESET-1
19911991
timeout: "{{ odc_reset_timeout }}"
19921992
critical: true
19931993
- name: part-term
@@ -2028,7 +2028,7 @@ roles:
20282028
- name: load
20292029
call:
20302030
func: trg.RunLoad()
2031-
trigger: before_START_ACTIVITY-100
2031+
trigger: before_START_ACTIVITY+10
20322032
timeout: "{{ trg_load_timeout }}"
20332033
critical: true
20342034
- name: pre-start
@@ -2040,7 +2040,7 @@ roles:
20402040
- name: start
20412041
call:
20422042
func: trg.RunStart()
2043-
trigger: after_START_ACTIVITY
2043+
trigger: after_START_ACTIVITY-10
20442044
timeout: "{{ trg_start_timeout }}"
20452045
critical: true
20462046
- name: stop
@@ -2073,7 +2073,7 @@ roles:
20732073
- name: start
20742074
call:
20752075
func: ccdb.RunStart()
2076-
trigger: before_START_ACTIVITY
2076+
trigger: before_START_ACTIVITY+100
20772077
timeout: "{{ ccdb_start_timeout }}"
20782078
critical: false
20792079
- name: stop
@@ -2100,13 +2100,13 @@ roles:
21002100
- name: startrun
21012101
call:
21022102
func: bookkeeping.StartOfRun()
2103-
trigger: before_START_ACTIVITY-100
2103+
trigger: before_START_ACTIVITY+10
21042104
timeout: 10s
21052105
critical: false
21062106
- name: retrievefillinfoatsor
21072107
call:
21082108
func: bookkeeping.RetrieveFillInfo()
2109-
trigger: before_START_ACTIVITY-99
2109+
trigger: before_START_ACTIVITY+11
21102110
timeout: 10s
21112111
critical: false
21122112
- name: updaterunstart
@@ -2265,6 +2265,6 @@ roles:
22652265
- name: before_start_activity
22662266
call:
22672267
func: kafka.PublishStartActivityUpdate()
2268-
trigger: before_START_ACTIVITY-50
2268+
trigger: before_START_ACTIVITY+50
22692269
timeout: 5s
22702270
critical: false

0 commit comments

Comments
 (0)