brynq-sdk-task-scheduler 4.0.5__tar.gz → 4.0.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq_sdk_task_scheduler
3
- Version: 4.0.5
3
+ Version: 4.0.6
4
4
  Summary: Code to execute tasks in BrynQ.com with the task scheduler
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -69,6 +69,12 @@ class TaskScheduler:
69
69
  self.mysql_reachable = True
70
70
  try:
71
71
  self.mysql = MySQL()
72
+ # override connection credentials always because they mightve been retrieved from an interface credential
73
+ self.mysql.host = os.getenv("MYSQL_HOST")
74
+ self.mysql.user = os.getenv("MYSQL_USER")
75
+ self.mysql.password = os.getenv("MYSQL_PASSWORD")
76
+ self.mysql.database = os.getenv("MYSQL_DATABASE")
77
+ self.mysql.port = 3306 if os.getenv("MYSQL_PORT") is None else int(os.getenv("MYSQL_PORT"))
72
78
  self.mysql.ping()
73
79
  except Exception as e:
74
80
  self.mysql_reachable = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq-sdk-task-scheduler
3
- Version: 4.0.5
3
+ Version: 4.0.6
4
4
  Summary: Code to execute tasks in BrynQ.com with the task scheduler
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
2
2
 
3
3
  setup(
4
4
  name='brynq_sdk_task_scheduler',
5
- version='4.0.5',
5
+ version='4.0.6',
6
6
  description='Code to execute tasks in BrynQ.com with the task scheduler',
7
7
  long_description='Code to execute tasks in the BrynQ.com platform with the task scheduler',
8
8
  author='BrynQ',