Skip to main content

Options for restarting an app instance.

Properties (4)

Property Type Default Required Description
context⚓︎ Record<string, any> | "preserve" | "clear" "preserve" x

Context to pass to the restarted instance. If you provide "preserve" as a value, the context of the original instance will be reused. If you provide "clear" as a value, the context of the restarted instance will reset to an empty object.

id⚓︎ string x

The ID of the instance to restart.

timeout⚓︎ number 120000 x

Interval in milliseconds to wait for restarting the app instance.

useOriginalDefinition⚓︎ boolean false x

If true, the original app definition will be used for the restarted instance.