feat(T06): hostPath working-memory sync and repo-relative sink paths
Mount the-custodian memory/working from the railiance01 clone (hostPath) so sweep writeback commits daily-triage notes; worker runs as uid 1000; progress events store repo-relative working_memory_path; ops inventory defaults use custodian:// URIs.
This commit is contained in:
parent
70e3154b05
commit
ce03e78e26
10 changed files with 76 additions and 30 deletions
|
|
@ -24,7 +24,7 @@ DEFAULT_PROGRESS_EVENT_TYPE = "daily_triage"
|
|||
DEFAULT_TEMPORAL_HOST = "localhost:7233"
|
||||
DEFAULT_TEMPORAL_NAMESPACE = "default"
|
||||
DEFAULT_STATE_HUB_URL = "http://127.0.0.1:8000"
|
||||
DEFAULT_WORKING_MEMORY_DIR = "/home/worsch/the-custodian/memory/working"
|
||||
from activity_core.runtime_paths import custodian_working_memory_dir
|
||||
|
||||
|
||||
def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
|
||||
|
|
@ -50,10 +50,13 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
|
|||
DEFAULT_STATE_HUB_URL,
|
||||
))
|
||||
parser.add_argument("--progress-event-type", default=DEFAULT_PROGRESS_EVENT_TYPE)
|
||||
parser.add_argument("--working-memory-dir", default=os.environ.get(
|
||||
"DAILY_TRIAGE_WORKING_MEMORY_DIR",
|
||||
DEFAULT_WORKING_MEMORY_DIR,
|
||||
))
|
||||
parser.add_argument(
|
||||
"--working-memory-dir",
|
||||
default=os.environ.get(
|
||||
"DAILY_TRIAGE_WORKING_MEMORY_DIR",
|
||||
str(custodian_working_memory_dir()),
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
"--date",
|
||||
default=datetime.now(timezone.utc).date().isoformat(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue