workflow 4.8.12 → 4.8.14
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.
|
@@ -81,6 +81,24 @@ bunx --package @workflow/world-postgres bootstrap
|
|
|
81
81
|
The migration is idempotent and can safely be run as a post-deployment lifecycle script.
|
|
82
82
|
</Callout>
|
|
83
83
|
|
|
84
|
+
<Callout type="warn">
|
|
85
|
+
Migration 0027 converts every timestamp column to `timestamp with time zone`.
|
|
86
|
+
On a server whose time zone is UTC (the default on most hosted providers) it
|
|
87
|
+
only changes the catalog, and the upgrade order does not matter. On a server in
|
|
88
|
+
another time zone it also rewrites each `created_at` value from local time to
|
|
89
|
+
the instant it recorded, about one rewrite of each table, holding the tables'
|
|
90
|
+
locks until it finishes. There, stop the previous version's workers, run
|
|
91
|
+
`bootstrap`, then start the upgraded app: older versions read the converted
|
|
92
|
+
columns shifted by the server's UTC offset, so you cannot roll back past this
|
|
93
|
+
migration either. If your app's connection pool set a session time zone other
|
|
94
|
+
than the server's, pass it to the migration with
|
|
95
|
+
`?options=-c%20workflow.legacy_timezone%3DEurope%2FBerlin` in the connection
|
|
96
|
+
string, or with `ALTER DATABASE ... SET workflow.legacy_timezone =
|
|
97
|
+
'Europe/Berlin'` where your pooler drops startup `options`. The migration waits
|
|
98
|
+
at most 10 seconds for its locks; if a long transaction holds them, `bootstrap`
|
|
99
|
+
fails and can be run again.
|
|
100
|
+
</Callout>
|
|
101
|
+
|
|
84
102
|
## Starting the World
|
|
85
103
|
|
|
86
104
|
To subscribe to the graphile-worker queue, your workflow app needs to start the world on server start. Here are examples for a few frameworks:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.14",
|
|
4
4
|
"description": "Workflow SDK - Build durable, resilient, and observable workflows",
|
|
5
5
|
"main": "dist/typescript-plugin.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"ms": "2.1.3",
|
|
60
|
-
"@workflow/
|
|
61
|
-
"@workflow/
|
|
62
|
-
"@workflow/core": "4.8.12",
|
|
60
|
+
"@workflow/cli": "4.3.18",
|
|
61
|
+
"@workflow/core": "4.8.14",
|
|
63
62
|
"@workflow/errors": "4.2.2",
|
|
64
63
|
"@workflow/typescript-plugin": "4.0.3",
|
|
65
|
-
"@workflow/next": "4.1.16",
|
|
66
|
-
"@workflow/nest": "4.0.28",
|
|
67
|
-
"@workflow/nitro": "4.1.18",
|
|
68
|
-
"@workflow/nuxt": "4.0.28",
|
|
69
|
-
"@workflow/sveltekit": "4.0.27",
|
|
70
64
|
"@workflow/utils": "4.1.4",
|
|
71
|
-
"@workflow/
|
|
65
|
+
"@workflow/next": "4.1.18",
|
|
66
|
+
"@workflow/nest": "4.0.30",
|
|
67
|
+
"@workflow/nitro": "4.1.20",
|
|
68
|
+
"@workflow/nuxt": "4.0.30",
|
|
69
|
+
"@workflow/sveltekit": "4.0.29",
|
|
70
|
+
"@workflow/rollup": "4.0.29",
|
|
71
|
+
"@workflow/astro": "4.0.29"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/ms": "2.1.0",
|