fix: per-project lock and log files for dev-poll
Hardcoded /tmp/dev-agent.lock meant harb and disinto dev-polls shared
a lock — one project's running agent blocked the other. Now uses
/tmp/dev-agent-{project}.lock and dev-agent-{project}.log.
This commit is contained in:
parent
fce5e66b90
commit
249eef86c1
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ source "$(dirname "$0")/../lib/env.sh"
|
|||
REPO="${CODEBERG_REPO}"
|
||||
|
||||
API="${CODEBERG_API}"
|
||||
LOCKFILE="/tmp/dev-agent.lock"
|
||||
LOGFILE="${FACTORY_ROOT}/dev/dev-agent.log"
|
||||
LOCKFILE="/tmp/dev-agent-${PROJECT_NAME:-harb}.lock"
|
||||
LOGFILE="${FACTORY_ROOT}/dev/dev-agent-${PROJECT_NAME:-harb}.log"
|
||||
PREFLIGHT_RESULT="/tmp/dev-agent-preflight.json"
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue