You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run `wrangler deploy`, the Worker code is updated immediately and Container
12
13
instances are updated using a rolling deploy strategy. The default rollout configuration is two steps,
13
14
where the first step updates 10% of the instances, and the second step updates the remaining 90%.
@@ -22,6 +23,7 @@ If you have cleanup that must occur before a Container instance is stopped, you
22
23
Once stopped, the instance is replaced with a new instance running the updated code. Requests may hang while the container is starting up again.
23
24
24
25
Here is an example configuration that sets a 5 minute grace period and a two step rollout where the first step updates 10% of instances and the second step updates 100% of instances:
26
+
25
27
<WranglerConfig>
26
28
27
29
```toml
@@ -40,4 +42,17 @@ class_name = "MyContainer"
40
42
tag = "v1"
41
43
new_sqlite_classes = ["MyContainer"]
42
44
```
43
-
</WranglerConfig>
45
+
46
+
</WranglerConfig>
47
+
48
+
## Immediate rollouts
49
+
50
+
If you need to do a one-off deployment that rolls out to 100% of container instances in one step, you can deploy with:
51
+
52
+
<PackageManagers
53
+
pkg="wrangler"
54
+
type="exec"
55
+
args="deploy --containers-rollout=immediate"
56
+
/>
57
+
58
+
Note that `rollout_active_grace_period`, if configured, will still apply.
0 commit comments