MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / validate

Method validate

lightx2v/server/config.py:51–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 return config
50
51 def validate(self) -> bool:
52 valid = True
53
54 if self.max_queue_size <= 0:
55 logger.error("max_queue_size must be positive")
56 valid = False
57
58 if self.task_timeout <= 0:
59 logger.error("task_timeout must be positive")
60 valid = False
61
62 return valid
63
64
65server_config = ServerConfig.from_env()

Callers 2

__init__Method · 0.80
run_serverFunction · 0.80

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected