Review ewoksserver settings
Currently we have this pydantic model for the ewoks server configuration
class EwoksSettings(BaseModel):
configured: bool = Field(
default=False, title="Config or resource directory have been defined"
)
resource_directory: Path = Field(
default=Path("."), title="Backend file resource directory"
)
ewoks: Optional[Dict] = Field(default=None, title="Ewoks configuration")
celery: Optional[Dict] = Field(default=None, title="Celery configuration")
without_events: bool = Field(default=False, title="Enable ewoks events")
discover_tasks: bool = Field(default=False, title="Discover ewoks tasks on startup")
So ewoks
refers to the execution (we should have called it ewoks_execution
or something) and afaik only "handlers"
is used. Perhaps this need to be a model as well.
The DISCOVER_TIMEOUT
and discover_tasks
are both ewoks
as well, but not execution. So ewoks_discovery
for example.
Do you think we could do something like this and deprecate where needed?
ewoks_discovery
can also contain discover_tasks
.