Skip to content

Commit bd0d0f1

Browse files
feat: Don't use "%FLOW_PATH_ROOT%" as default group name
A common deployment strategy might involve creating arbitrarily named deployment target folders, installing a new flow instance, warming up caches and either switching symlinks or web server web root settings to that new directory. Using %FLOW_PATH_ROOT% as default supervisor group name will result in constantly eliminating whole supervisor groups and creating new ones on every deployment, although most of the time the supervisor config remains nearly unchanged.
1 parent 5fa90d4 commit bd0d0f1

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

Configuration/Settings.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ Netlogix:
99
groups:
1010

1111
default:
12-
# Supervisor group name.
13-
# Defaults to the array key if not present.
12+
# Maps to a Supervisor group name.
1413
# Gets cleaned up to not contain invalid characters as of supervisor settings
15-
name: "%FLOW_PATH_ROOT%"
14+
#
15+
# In general, `supervisorctl restart flow:` calls are limited to only one
16+
# specific group.
17+
# If multiple flow instances share a common supervisor daemon, the unique group name
18+
# per flow instances allows restart calls on deployment that don't affect other flow
19+
# instances.
20+
# This can be changed to e.g. `name: "%FLOW_PATH_ROOT%"`
21+
#
22+
# Defaults to the array key if not present.
23+
name: "default"
1624

1725
# Defaults to 999
1826
priority: 100

0 commit comments

Comments
 (0)