Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay parameter to all SQL Source Kamelets #1163

Merged
merged 8 commits into from
Nov 17, 2022
6 changes: 6 additions & 0 deletions kamelets/mariadb-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ spec:
description: A query to run on a tuple consumed.
type: string
example: 'DELETE FROM accounts where user_id = :#user_id'
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
in:
mediaType: application/json
Expand All @@ -107,6 +112,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down
6 changes: 6 additions & 0 deletions kamelets/mysql-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ spec:
description: A query to run on a tuple consumed.
type: string
example: 'DELETE FROM accounts where user_id = :#user_id'
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
out:
mediaType: application/json
Expand All @@ -107,6 +112,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down
6 changes: 6 additions & 0 deletions kamelets/postgresql-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ spec:
description: A query to run on a tuple consumed.
type: string
example: 'DELETE FROM accounts where user_id = :#user_id'
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
out:
mediaType: application/json
Expand Down Expand Up @@ -104,6 +109,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down
6 changes: 6 additions & 0 deletions kamelets/sqlserver-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ spec:
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: true
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
in:
mediaType: application/json
Expand All @@ -121,6 +126,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ spec:
description: A query to run on a tuple consumed.
type: string
example: 'DELETE FROM accounts where user_id = :#user_id'
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
in:
mediaType: application/json
Expand All @@ -107,6 +112,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ spec:
description: A query to run on a tuple consumed.
type: string
example: 'DELETE FROM accounts where user_id = :#user_id'
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
out:
mediaType: application/json
Expand All @@ -107,6 +112,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ spec:
description: A query to run on a tuple consumed.
type: string
example: 'DELETE FROM accounts where user_id = :#user_id'
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
out:
mediaType: application/json
Expand Down Expand Up @@ -104,6 +109,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ spec:
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: true
delay:
title: Delay
description: The number of milliseconds before the next poll
type: integer
default: 500
types:
in:
mediaType: application/json
Expand All @@ -121,6 +126,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
delay: "{{delay}}"
steps:
- marshal:
json:
Expand Down