2018-09-18 09:21:57 +03:00
|
|
|
type: bulk
|
|
|
|
args:
|
2021-01-06 19:06:24 +03:00
|
|
|
|
2018-09-18 09:21:57 +03:00
|
|
|
- type: run_sql
|
|
|
|
args:
|
|
|
|
sql: |
|
|
|
|
create table hge_tests.test_t1(
|
|
|
|
c1 int,
|
|
|
|
c2 text
|
|
|
|
);
|
2019-02-14 10:37:59 +03:00
|
|
|
create table hge_tests.test_t2(
|
|
|
|
c1 int,
|
|
|
|
c2 text
|
|
|
|
);
|
|
|
|
create table hge_tests.test_t3(
|
|
|
|
c1 int,
|
|
|
|
c2 text
|
|
|
|
);
|
2021-01-06 19:06:24 +03:00
|
|
|
|
2018-09-18 09:21:57 +03:00
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t1
|
2019-02-14 10:37:59 +03:00
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t2
|
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t3
|
2018-09-18 09:21:57 +03:00
|
|
|
- type: create_event_trigger
|
|
|
|
args:
|
2018-09-19 15:12:57 +03:00
|
|
|
name: t1_retry
|
2018-09-18 09:21:57 +03:00
|
|
|
table:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t1
|
|
|
|
insert:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2018-09-19 15:12:57 +03:00
|
|
|
update:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2018-09-19 15:12:57 +03:00
|
|
|
delete:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2018-09-19 15:12:57 +03:00
|
|
|
webhook: http://127.0.0.1:5592/fail
|
|
|
|
retry_conf:
|
|
|
|
num_retries: 4
|
2021-04-27 08:34:14 +03:00
|
|
|
interval_sec: 1
|
2019-02-14 10:37:59 +03:00
|
|
|
- type: create_event_trigger
|
|
|
|
args:
|
|
|
|
name: t2_timeout_short
|
|
|
|
table:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t2
|
|
|
|
insert:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2019-02-14 10:37:59 +03:00
|
|
|
update:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2019-02-14 10:37:59 +03:00
|
|
|
delete:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2021-04-27 08:34:14 +03:00
|
|
|
webhook: http://127.0.0.1:5592/sleep_2s
|
2019-02-14 10:37:59 +03:00
|
|
|
retry_conf:
|
|
|
|
num_retries: 2
|
2021-04-27 08:34:14 +03:00
|
|
|
interval_sec: 1
|
|
|
|
timeout_sec: 1
|
2019-02-14 10:37:59 +03:00
|
|
|
- type: create_event_trigger
|
|
|
|
args:
|
|
|
|
name: t3_timeout_long
|
|
|
|
table:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t3
|
|
|
|
insert:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2019-02-14 10:37:59 +03:00
|
|
|
update:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2019-02-14 10:37:59 +03:00
|
|
|
delete:
|
2021-01-06 19:06:24 +03:00
|
|
|
columns: '*'
|
2021-04-27 08:34:14 +03:00
|
|
|
webhook: http://127.0.0.1:5592/sleep_2s
|
2019-02-14 10:37:59 +03:00
|
|
|
retry_conf:
|
|
|
|
num_retries: 0
|
|
|
|
interval_sec: 2
|
|
|
|
timeout_sec: 10
|