Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ma_code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven-Ove Hänsel
ma_code
Commits
ea9a4077
Commit
ea9a4077
authored
1 year ago
by
Sven-Ove Hänsel
Browse files
Options
Downloads
Patches
Plain Diff
add keepalive and fix missing edges for unnammed pipe obj
parent
9b512ef8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/infrastructure/streaming/clients/sub/postgres/sub_pg_cdm.py
+3
-3
3 additions, 3 deletions
...frastructure/streaming/clients/sub/postgres/sub_pg_cdm.py
with
3 additions
and
3 deletions
code/infrastructure/streaming/clients/sub/postgres/sub_pg_cdm.py
+
3
−
3
View file @
ea9a4077
...
...
@@ -160,11 +160,11 @@ def parse_json_to_sql_query(json,node_type):
add_edge
(
key
,
keys
,
rel
,
dest
,
edge_type
,
json
)
rel
=
'
affects
'
key
=
f
"
{
key_header
}
_sourceUUID
"
key
=
f
"
{
key_header
}
_sourceUUID
{
key_postfix
}
"
add_edge
(
key
,
keys
,
rel
,
dest
,
edge_type
,
json
)
rel
=
'
affects2
'
key
=
f
"
{
key_header
}
_sinkUUID
"
key
=
f
"
{
key_header
}
_sinkUUID
{
key_postfix
}
"
add_edge
(
key
,
keys
,
rel
,
dest
,
edge_type
,
json
)
edge_values
=
[
source
,
dest
,
edge_type
]
...
...
@@ -261,7 +261,7 @@ client.on_connect = on_connect
client
.
on_message
=
on_message
client
.
failed_connect
=
False
client
.
connect
(
broker_hostname
,
broker_port
,
60
)
client
.
connect
(
broker_hostname
,
broker_port
,
keepalive
=
3600
*
4
)
client
.
loop_start
()
# this try-finally block ensures that whenever we terminate the program earlier by hitting ctrl+c, it still gracefully exits
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment