furu 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- furu/__init__.py +3 -1
- furu/config.py +8 -2
- furu/core/__init__.py +2 -2
- furu/core/furu.py +427 -66
- furu/dashboard/frontend/dist/assets/{index-CbdDfSOZ.css → index-BXAIKNNr.css} +1 -1
- furu/dashboard/frontend/dist/assets/{index-DDv_TYB_.js → index-DS3FsqcY.js} +3 -3
- furu/dashboard/frontend/dist/index.html +2 -2
- furu/errors.py +47 -5
- furu/migration.py +8 -4
- furu/serialization/serializer.py +40 -2
- furu/storage/metadata.py +17 -5
- furu/storage/state.py +44 -6
- {furu-0.0.2.dist-info → furu-0.0.3.dist-info}/METADATA +14 -1
- {furu-0.0.2.dist-info → furu-0.0.3.dist-info}/RECORD +16 -16
- {furu-0.0.2.dist-info → furu-0.0.3.dist-info}/WHEEL +0 -0
- {furu-0.0.2.dist-info → furu-0.0.3.dist-info}/entry_points.txt +0 -0
furu/__init__.py
CHANGED
|
@@ -13,7 +13,7 @@ __version__ = version("furu")
|
|
|
13
13
|
|
|
14
14
|
from .config import FURU_CONFIG, FuruConfig, get_furu_root, set_furu_root
|
|
15
15
|
from .adapters import SubmititAdapter
|
|
16
|
-
from .core import Furu, FuruList
|
|
16
|
+
from .core import DependencyChzSpec, DependencySpec, Furu, FuruList
|
|
17
17
|
from .errors import (
|
|
18
18
|
FuruComputeError,
|
|
19
19
|
FuruError,
|
|
@@ -56,6 +56,8 @@ __all__ = [
|
|
|
56
56
|
"FuruMigrationRequired",
|
|
57
57
|
"FuruSerializer",
|
|
58
58
|
"FuruWaitTimeout",
|
|
59
|
+
"DependencyChzSpec",
|
|
60
|
+
"DependencySpec",
|
|
59
61
|
"MISSING",
|
|
60
62
|
"migrate",
|
|
61
63
|
"NamespacePair",
|
furu/config.py
CHANGED
|
@@ -22,12 +22,19 @@ class FuruConfig:
|
|
|
22
22
|
self.poll_interval = float(os.getenv("FURU_POLL_INTERVAL_SECS", "10"))
|
|
23
23
|
self.wait_log_every_sec = float(os.getenv("FURU_WAIT_LOG_EVERY_SECS", "10"))
|
|
24
24
|
self.stale_timeout = float(os.getenv("FURU_STALE_AFTER_SECS", str(30 * 60)))
|
|
25
|
+
max_wait_env = os.getenv("FURU_MAX_WAIT_SECS")
|
|
26
|
+
self.max_wait_time_sec = float(max_wait_env) if max_wait_env else None
|
|
25
27
|
self.lease_duration_sec = float(os.getenv("FURU_LEASE_SECS", "120"))
|
|
26
28
|
hb = os.getenv("FURU_HEARTBEAT_SECS")
|
|
27
29
|
self.heartbeat_interval_sec = (
|
|
28
30
|
float(hb) if hb is not None else max(1.0, self.lease_duration_sec / 3.0)
|
|
29
31
|
)
|
|
30
32
|
self.max_requeues = int(os.getenv("FURU_PREEMPT_MAX", "5"))
|
|
33
|
+
self.retry_failed = os.getenv("FURU_RETRY_FAILED", "1").lower() in {
|
|
34
|
+
"1",
|
|
35
|
+
"true",
|
|
36
|
+
"yes",
|
|
37
|
+
}
|
|
31
38
|
self.ignore_git_diff = os.getenv("FURU_IGNORE_DIFF", "0").lower() in {
|
|
32
39
|
"1",
|
|
33
40
|
"true",
|
|
@@ -151,8 +158,7 @@ class FuruConfig:
|
|
|
151
158
|
value = getattr(target, attr, missing_sentinel)
|
|
152
159
|
if value is missing_sentinel:
|
|
153
160
|
raise ValueError(
|
|
154
|
-
"FURU_ALWAYS_RERUN entry does not exist: "
|
|
155
|
-
f"{namespace!r}"
|
|
161
|
+
f"FURU_ALWAYS_RERUN entry does not exist: {namespace!r}"
|
|
156
162
|
)
|
|
157
163
|
target = value
|
|
158
164
|
|
furu/core/__init__.py
CHANGED