Skip to content

Commit 3a9f588

Browse files
committed
add database connections argument
1 parent 33e50b4 commit 3a9f588

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/publish_container_image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Deply to GitHub Container Registry
2-
on:
3-
push:
4-
tags:
5-
- '*'
2+
on: [push]
3+
# push:
4+
# tags:
5+
# - '*'
66

77
jobs:
88
publish-container-image:

src/grow_worker/worker.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from pathlib import Path
55
from typing import cast, Dict, List, Tuple, Optional
66

7+
from mesido.esdl.esdl_mixin import DBAccesType
78
from mesido.exceptions import MesidoAssetIssueError
89
from omotes_sdk.internal.orchestrator_worker_events.esdl_messages import (
910
EsdlMessage,
@@ -80,12 +81,17 @@ def grow_worker_task(
8081
esdl_string=base64.encodebytes(input_esdl.encode("utf-8")),
8182
esdl_parser=ESDLStringParser,
8283
write_result_db_profiles=write_result_db_profiles,
83-
influxdb_host=influxdb_host,
84-
influxdb_port=influxdb_port,
85-
influxdb_username=os.environ.get("INFLUXDB_USERNAME"),
86-
influxdb_password=os.environ.get("INFLUXDB_PASSWORD"),
87-
influxdb_ssl=False,
88-
influxdb_verify_ssl=False,
84+
database_connections=[
85+
{
86+
"access_type": DBAccesType.READ_WRITE,
87+
"influxdb_host": influxdb_host,
88+
"influxdb_port": influxdb_port,
89+
"influxdb_username": os.environ.get("INFLUXDB_USERNAME"),
90+
"influxdb_password": os.environ.get("INFLUXDB_PASSWORD"),
91+
"influxdb_ssl": False,
92+
"influxdb_verify_ssl": False,
93+
},
94+
],
8995
update_progress_function=update_progress_handler,
9096
profile_reader=InfluxDBProfileReader,
9197
)

0 commit comments

Comments
 (0)