partial-deploy

command
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Partial Deploy

A noderun workflow demonstrating DeployWorkflowPartial — Node-RED's "modified nodes" deploy mode:

httpTrigger (GET /hello) → template → httpResponse

The example deploys a flow answering Hello v1!, calls it, then partial-redeploys with only the template text changed — and calls the same endpoint again to get Hello v2! on the same port.

Things to notice:

  • The incoming flow is diffed against the running one: only changed nodes are stopped and re-activated. Here the template node restarts; the httpTrigger's config is byte-identical so its executor — and its bound TCP listener — survives untouched.
  • That's the payoff for long-lived nodes (Stoppers): tcpIn/mqttIn sockets, inject timers, queue drainers don't drop connections or lose state when an unrelated node is edited.
  • On a cold deploy (nothing running), DeployWorkflowPartial is identical to a full DeployWorkflow.
  • Per-node state and statuses survive for untouched nodes — only the dirty node IDs are activated.

Run from the noderun module root:

go run ./examples/partial-deploy

Expected output:

Hello v1!
Hello v2!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL