Skip to content

refactor(worker): add async main entrypoint, consolidate dependencies - #1

Open
hashibit wants to merge 1 commit into
mainfrom
worker-async-entrypoint
Open

hashibit wants to merge 1 commit into
mainfrom
worker-async-entrypoint

Conversation

@hashibit

Copy link
Copy Markdown
Owner

Summary

  • New cli/main.py entrypoint runs heartbeat + 4 job schedulers concurrently; on first crash cancels the rest and exits non-zero so the supervisor (Docker restart) restarts the worker
  • Heartbeat loop fix: continue to the next manager endpoint when a stub is unavailable instead of aborting the whole loop
  • Dependencies consolidated: gRPC/media libs moved to core, unused packages dropped (aiohttp, six, tqdm, decorator, typing-extensions), async/tools extras removed
  • Dev tooling: pylint/yapf replaced with basedpyright; pytest testpaths fixed
  • check_env.py / install_deps.sh updated to drive uv sync --extra
  • six.moves.urllib_parse replaced with stdlib urllib.parse
  • Dockerfile CMD, READMEs and docs updated to cli.main

Test plan

  • 验证主要功能

🤖 Generated with Claude Code

- Add cli/main.py: run heartbeat + 4 job schedulers concurrently,
  cancel all and exit non-zero on first crash for supervisor restart
- Fix heartbeat loop: continue to next endpoint instead of returning
  when a manager stub is unavailable
- Consolidate deps: move grpc/media libs into core, drop aiohttp,
  six, tqdm, decorator, typing-extensions and async/tools extras
- Replace pylint/yapf with basedpyright; fix pytest testpaths
- Update check_env.py / install_deps.sh for new extras via uv sync
- Replace six.moves.urllib_parse with stdlib urllib.parse
- Point Dockerfile CMD, READMEs and docs at cli.main

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant