mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(ml): round-robin device assignment (#13237)
* round-robin device assignment * docs and tests clarify doc
This commit is contained in:
parent
063969ca05
commit
bd826b0b9b
8 changed files with 62 additions and 7 deletions
|
|
@ -39,6 +39,10 @@ class Settings(BaseSettings):
|
|||
case_sensitive = False
|
||||
env_nested_delimiter = "__"
|
||||
|
||||
@property
|
||||
def device_id(self) -> str:
|
||||
return os.environ.get("MACHINE_LEARNING_DEVICE_ID", "0")
|
||||
|
||||
|
||||
class LogSettings(BaseSettings):
|
||||
immich_log_level: str = "info"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue