mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 11:52:14 +01:00
chore(uno): update uno-listener-restart-threshold flag description
This commit is contained in:
@@ -82,7 +82,7 @@ func (UNO) Descriptor() gotenberg.ModuleDescriptor {
|
|||||||
FlagSet: func() *flag.FlagSet {
|
FlagSet: func() *flag.FlagSet {
|
||||||
fs := flag.NewFlagSet("uno", flag.ExitOnError)
|
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.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")
|
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")
|
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",
|
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 {
|
Read: func() float64 {
|
||||||
return float64(mod.listener.queue())
|
return float64(mod.listener.queue())
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user