Each domain's jobs name the models a score run takes

This commit is contained in:
Roberto Treviño
2026-11-29 07:03:08 -06:00
parent 43207fa3a5
commit f3f79831bf
3 changed files with 10 additions and 3 deletions
+6 -2
View File
@@ -41,10 +41,14 @@ class Jobs:
return f"{self.domain}_events"
def routine(self) -> list[str]:
"""The models a train run takes when none is named: all but the slow ones (a score
run takes them all: only training is slow)."""
"""The models a train run takes when none is named: all but the slow ones."""
return [n for n, s in self.models.items() if not getattr(s, "slow", False)]
def scored(self) -> list[str]:
"""The models a score run takes when none is named: all of them (only training is
slow)."""
return list(self.models)
def registered(self, name: str) -> str:
return f"{self.domain}.{name}"