Is There an Example of Persisting Workflows Across Server Restarts #200
-
|
Currently, I'm attempting to try and persist workflows across server restarts: I'm attempting to setup the var temporal =
await builder.AddTemporalServerContainer(
"temporal",
opts =>
opts.WithNamespace("mynamespace")
.WithDbFileName("temporal.db")
);
temporal.PublishAsConnectionString();However, I'm receiving this error message. Does the container need a volume attached? Are there other options available or examples that might show how to set this up? Is my Docker Desktop misconfigured? The machine has a lot of memory. Thanks for the work! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
My guess is it's not fully baked |
Beta Was this translation helpful? Give feedback.
-
|
@jeff-kwak-gail actually I think I figured it out: var builder = DistributedApplication.CreateBuilder(args);
// Use the default server options
var temporal = builder
.AddTemporalServerContainer(
"temporal",
b =>
b.WithPort(7233)
.WithHttpPort(7234)
.WithMetricsPort(7235)
.WithUiPort(8233)
.WithLogLevel(LogLevel.Info)
.WithDbFileName("/data/temporal.db")
)
.WithBindMount(source: "../.temporal-data", target: "/data", isReadOnly: false); |
Beta Was this translation helpful? Give feedback.
My guess is it's not fully baked