Constants and environment variablesΒΆ
Juturna reads a few settings from the environment when it is imported. Each has a default, used when the variable is not set.
Variable |
Default |
Meaning |
|---|---|---|
|
|
Messages the input queue of a node can hold. When it is full, the nodes sending to it wait. |
|
|
Seconds a node thread is given to exit when the node is killed. |
|
|
Longest wait, in seconds, between two calls of a source function that keeps failing. |
|
|
Telemetry records a node collects before handing them over. |
|
|
Objects visited at most when computing the size of an
|
|
|
Prefix that marks a configuration value as the name of an environment variable. |
Set them before starting Juturna:
$ export JUTURNA_MAX_QUEUE_SIZE=2000
$ python -m juturna launch --config pipeline.json
The value must convert to the type of the default: a value that does not
(fast for JUTURNA_THREAD_JOIN_TIMEOUT) raises RuntimeError at
import.
In code, the values are in juturna.meta:
>>> import juturna as jt
>>> jt.meta.JUTURNA_MAX_QUEUE_SIZE
999
One more variable is read by the pipeline service only:
Variable |
Meaning |
|---|---|
|
The token clients of |