-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: call the webhook asynchronously in event triggers (#5352)
* server: call the webhook asynchronosly in event triggers
- Loading branch information
1 parent
cefe06e
commit 0ef5229
Showing
5 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
server/tests-py/queries/event_triggers/async_execution/setup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
type: bulk | ||
args: | ||
- type: run_sql | ||
args: | ||
sql: | | ||
create table hge_tests.test_t1( | ||
c1 int, | ||
c2 text | ||
); | ||
- type: track_table | ||
args: | ||
schema: hge_tests | ||
name: test_t1 | ||
- type: create_event_trigger | ||
args: | ||
name: t1_timeout_long | ||
table: | ||
schema: hge_tests | ||
name: test_t1 | ||
insert: | ||
columns: "*" | ||
update: | ||
columns: "*" | ||
delete: | ||
columns: "*" | ||
webhook: http://127.0.0.1:5592/timeout_long |
9 changes: 9 additions & 0 deletions
9
server/tests-py/queries/event_triggers/async_execution/teardown.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type: bulk | ||
args: | ||
- type: delete_event_trigger | ||
args: | ||
name: t1_timeout_long | ||
- type: run_sql | ||
args: | ||
sql: | | ||
drop table hge_tests.test_t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters