chore(uno): update uno-listener-restart-threshold flag description

This commit is contained in:
Julien Neuhart
2022-02-08 19:46:31 +01:00
parent 50c34a4186
commit ca3e27937e

View File

@@ -82,7 +82,7 @@ func (UNO) Descriptor() gotenberg.ModuleDescriptor {
FlagSet: func() *flag.FlagSet {
fs := flag.NewFlagSet("uno", flag.ExitOnError)
fs.Duration("uno-listener-start-timeout", time.Duration(10)*time.Second, "Time limit for starting the LibreOffice listener")
fs.Int("uno-listener-restart-threshold", 10, "Operations limit after which the LibreOffice listener is restarted - 0 means no long-running LibreOffice listener")
fs.Int("uno-listener-restart-threshold", 10, "Conversions limit after which the LibreOffice listener is restarted - 0 means no long-running LibreOffice listener")
fs.Bool("unoconv-disable-listener", false, "Do not start a long-running listener - save resources in detriment of unitary performance")
err := fs.MarkDeprecated("unoconv-disable-listener", "use uno-listener-restart-threshold with 0 instead")
@@ -256,7 +256,7 @@ func (mod UNO) Metrics() ([]gotenberg.Metric, error) {
},
{
Name: "libreoffice_listener_queue_length",
Description: "Current number of processes in the queue.",
Description: "Current number of processes in the LibreOffice listener queue.",
Read: func() float64 {
return float64(mod.listener.queue())
},