dagster-postgres 0.23.11__py3-none-any.whl → 0.23.13__py3-none-any.whl
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.
Potentially problematic release.
This version of dagster-postgres might be problematic. Click here for more details.
- dagster_postgres/run_storage/run_storage.py +3 -3
- dagster_postgres/schedule_storage/schedule_storage.py +2 -2
- dagster_postgres/version.py +1 -1
- {dagster_postgres-0.23.11.dist-info → dagster_postgres-0.23.13.dist-info}/METADATA +2 -2
- {dagster_postgres-0.23.11.dist-info → dagster_postgres-0.23.13.dist-info}/RECORD +8 -8
- {dagster_postgres-0.23.11.dist-info → dagster_postgres-0.23.13.dist-info}/LICENSE +0 -0
- {dagster_postgres-0.23.11.dist-info → dagster_postgres-0.23.13.dist-info}/WHEEL +0 -0
- {dagster_postgres-0.23.11.dist-info → dagster_postgres-0.23.13.dist-info}/top_level.txt +0 -0
|
@@ -24,7 +24,7 @@ from dagster._core.storage.sql import (
|
|
|
24
24
|
)
|
|
25
25
|
from dagster._daemon.types import DaemonHeartbeat
|
|
26
26
|
from dagster._serdes import ConfigurableClass, ConfigurableClassData, serialize_value
|
|
27
|
-
from dagster.
|
|
27
|
+
from dagster._time import datetime_from_timestamp
|
|
28
28
|
from sqlalchemy import event
|
|
29
29
|
from sqlalchemy.engine import Connection
|
|
30
30
|
|
|
@@ -180,7 +180,7 @@ class PostgresRunStorage(SqlRunStorage, ConfigurableClass):
|
|
|
180
180
|
conn.execute(
|
|
181
181
|
db_dialects.postgresql.insert(DaemonHeartbeatsTable)
|
|
182
182
|
.values(
|
|
183
|
-
timestamp=
|
|
183
|
+
timestamp=datetime_from_timestamp(daemon_heartbeat.timestamp),
|
|
184
184
|
daemon_type=daemon_heartbeat.daemon_type,
|
|
185
185
|
daemon_id=daemon_heartbeat.daemon_id,
|
|
186
186
|
body=serialize_value(daemon_heartbeat),
|
|
@@ -188,7 +188,7 @@ class PostgresRunStorage(SqlRunStorage, ConfigurableClass):
|
|
|
188
188
|
.on_conflict_do_update(
|
|
189
189
|
index_elements=[DaemonHeartbeatsTable.c.daemon_type],
|
|
190
190
|
set_={
|
|
191
|
-
"timestamp":
|
|
191
|
+
"timestamp": datetime_from_timestamp(daemon_heartbeat.timestamp),
|
|
192
192
|
"daemon_id": daemon_heartbeat.daemon_id,
|
|
193
193
|
"body": serialize_value(daemon_heartbeat),
|
|
194
194
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from typing import ContextManager, Optional, Sequence
|
|
2
2
|
|
|
3
3
|
import dagster._check as check
|
|
4
|
-
import pendulum
|
|
5
4
|
import sqlalchemy as db
|
|
6
5
|
import sqlalchemy.dialects as db_dialects
|
|
7
6
|
import sqlalchemy.pool as db_pool
|
|
@@ -24,6 +23,7 @@ from dagster._core.storage.sql import (
|
|
|
24
23
|
stamp_alembic_rev,
|
|
25
24
|
)
|
|
26
25
|
from dagster._serdes import ConfigurableClass, ConfigurableClassData, serialize_value
|
|
26
|
+
from dagster._time import get_current_datetime
|
|
27
27
|
from sqlalchemy import event
|
|
28
28
|
from sqlalchemy.engine import Connection
|
|
29
29
|
|
|
@@ -175,7 +175,7 @@ class PostgresScheduleStorage(SqlScheduleStorage, ConfigurableClass):
|
|
|
175
175
|
"status": state.status.value,
|
|
176
176
|
"instigator_type": state.instigator_type.value,
|
|
177
177
|
"instigator_body": serialize_value(state),
|
|
178
|
-
"update_timestamp":
|
|
178
|
+
"update_timestamp": get_current_datetime(),
|
|
179
179
|
},
|
|
180
180
|
)
|
|
181
181
|
)
|
dagster_postgres/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.23.
|
|
1
|
+
__version__ = "0.23.13"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dagster-postgres
|
|
3
|
-
Version: 0.23.
|
|
3
|
+
Version: 0.23.13
|
|
4
4
|
Summary: A Dagster integration for postgres
|
|
5
5
|
Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-postgres
|
|
6
6
|
Author: Dagster Labs
|
|
@@ -15,6 +15,6 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Requires-Python: >=3.8,<3.13
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: dagster ==1.7.
|
|
18
|
+
Requires-Dist: dagster ==1.7.13
|
|
19
19
|
Requires-Dist: psycopg2-binary
|
|
20
20
|
|
|
@@ -2,16 +2,16 @@ dagster_postgres/__init__.py,sha256=LEcXwiGeuZgIvfDg0PVcRuKjUmg0t9Uslx5nLZ8Yg08,
|
|
|
2
2
|
dagster_postgres/py.typed,sha256=la67KBlbjXN-_-DfGNcdOcjYumVpKG_Tkw-8n5dnGB4,8
|
|
3
3
|
dagster_postgres/storage.py,sha256=uo264Cr0it0KzduaGD5_54YmjAPng5Vy5AhPsffPPEU,4193
|
|
4
4
|
dagster_postgres/utils.py,sha256=DUycPHaK-eq8Gpnulpk7OWGk7TIhWTfS1UkqIyxaKGo,5903
|
|
5
|
-
dagster_postgres/version.py,sha256=
|
|
5
|
+
dagster_postgres/version.py,sha256=Y1W68bKjdUjkwL4Vwr0vWbYvP9LWvgg8txY1EFgCp9o,24
|
|
6
6
|
dagster_postgres/alembic/alembic.ini,sha256=GovyDEhu_6HvkWV6txqjdDBOe4BseSM0YDWGxXM5_cA,986
|
|
7
7
|
dagster_postgres/event_log/__init__.py,sha256=pQ7nZw5Fp60xVd_JPsZ61n6G5V4d0y8MfUGNkHvgbik,74
|
|
8
8
|
dagster_postgres/event_log/event_log.py,sha256=FnjfJqy9I_U9bU74qlZNokJ6dMvhMYzoZJhSDKcvYXc,15463
|
|
9
9
|
dagster_postgres/run_storage/__init__.py,sha256=4bI2C2kkZO9glXH8jIUViYBRSeMjdDHiVQVi_k1HkYw,66
|
|
10
|
-
dagster_postgres/run_storage/run_storage.py,sha256=
|
|
10
|
+
dagster_postgres/run_storage/run_storage.py,sha256=_TY44MDXZzuQvnLO19SSjM7eikXyRhX7Pftlkl6NNuA,9650
|
|
11
11
|
dagster_postgres/schedule_storage/__init__.py,sha256=GKJlFZYh27fUxJDMQwNJUwibbTnip1ledbcokczutmk,81
|
|
12
|
-
dagster_postgres/schedule_storage/schedule_storage.py,sha256=
|
|
13
|
-
dagster_postgres-0.23.
|
|
14
|
-
dagster_postgres-0.23.
|
|
15
|
-
dagster_postgres-0.23.
|
|
16
|
-
dagster_postgres-0.23.
|
|
17
|
-
dagster_postgres-0.23.
|
|
12
|
+
dagster_postgres/schedule_storage/schedule_storage.py,sha256=MAMJ4X77f2ar3VEzfaUaP7pdpK8sUWpM7hmHs4crkvQ,8565
|
|
13
|
+
dagster_postgres-0.23.13.dist-info/LICENSE,sha256=TMatHW4_G9ldRdodEAp-l2Xa2WvsdeOh60E3v1R2jis,11349
|
|
14
|
+
dagster_postgres-0.23.13.dist-info/METADATA,sha256=dh1otOrrmDHaoiYJnLeUVENJHa8p5xB3IkaRSkkbbms,764
|
|
15
|
+
dagster_postgres-0.23.13.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
16
|
+
dagster_postgres-0.23.13.dist-info/top_level.txt,sha256=lScMtAEKDX1yIv2tGa1nzntBa0HEStfWPfCwD8FWlHk,17
|
|
17
|
+
dagster_postgres-0.23.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|