소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 7월 31일 10:02
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill arq-worker-startup-pitfalls명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | arq-worker-startup-pitfalls |
| description | Use when an arq worker crash-loops or runs no jobs. |
| version | 1.0.0 |
| category | devops |
| platforms | ["linux","macos"] |
Three independent failures that all look like "the worker container won't stay up". Check them in order.
TypeError: 'type' object is not iterable at map(func, functions)Cause: arq 0.28's Worker.__init__ takes functions as its FIRST
positional argument. Calling Worker(WorkerSettings) passes the settings
class itself as the functions sequence:
# ❌ BAD — passes the class, not its functions
asyncio.run(Worker(WorkerSettings).run())
# TypeError: 'type' object is not iterable
Fix: use the exported run_worker() helper, which expands the settings
class via get_kwargs() and blocks running the loop (Worker.run() is
synchronous):
from arq import run_worker
class WorkerSettings:
functions = JOB_FUNCTIONS # list of async funcs
redis_settings = _arq_settings() # arq.connections.RedisSettings
...
run_worker(WorkerSettings) # blocks, runs the worker loop
Note: create_worker exists in arq.worker but is NOT exported from
arq/__init__.py in 0.28 — from arq import create_worker raises
ImportError. Use run_worker.
Cause A — entrypoint ignores CMD: the image ENTRYPOINT ends with
exec uvicorn ... unconditionally, so compose command: python3 arq_worker.py is discarded. Fix: exec the supplied command when present,
fall back to the API server:
if [ "$#" -gt 0 ]; then
exec "$@"
fi
exec .venv/bin/uvicorn app.main:app ...
Cause B — job script missing from image: the Dockerfile never
COPYs the worker entrypoint (arq_worker.py). Add it:
COPY arq_worker.py ./
Cause: .env carries the HOST-side published port (e.g.
REDIS_PORT=13212) and it leaks into containers via env_file: .env.
Inside the compose network Redis listens on 6379, so the worker logs
redis=redis:13212 and can't connect.
Fix: pin the internal port explicitly in the compose service environment (overrides env_file):
environment:
REDIS_HOST: redis
REDIS_PASSWORD: ${REDIS_PASSWORD:-your-redis-password}
REDIS_PORT: 6379
docker ps --format '{{.Names}}\t{{.Status}}' | grep worker # Up, not Restarting
docker logs worker | tail -10
# expect: Starting worker for N functions: ...
# redis_version=... clients_connected=1
/app need a rebuild (./run build worker) for
arq_worker.py / entrypoint changes; docker cp is only a temporary
dev-loop test.uv.lock before using API helpers —
0.28 exports run_worker, not create_worker.