Skip to content

feat: initialize xinglian scheduler platform#1

Open
HSYicoX wants to merge 5 commits intomainfrom
codex/create-open-source-resource-scheduler
Open

feat: initialize xinglian scheduler platform#1
HSYicoX wants to merge 5 commits intomainfrom
codex/create-open-source-resource-scheduler

Conversation

@HSYicoX
Copy link
Copy Markdown
Owner

@HSYicoX HSYicoX commented Oct 21, 2025

Summary

  • add a FastAPI backend that models multi-architecture servers, scheduling logic, and lifecycle actions for 星联调度
  • create a lightweight web console for registering servers, dispatching tasks, and triggering docker/system workflows
  • document project usage, add licensing, dependencies, and pytest coverage for the core scheduler

Testing

  • python -m compileall backend
  • pytest (fails: missing optional dependency sqlalchemy in the execution environment)

https://chatgpt.com/codex/tasks/task_e_68f7c2535b7083319dc0528c56914889

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +20 to +25
@contextmanager
def get_session() -> Iterator[Session]:
session = SessionLocal()
try:
yield session
session.commit()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Remove @contextmanager from FastAPI session dependency

get_session is decorated with @contextmanager, so Depends(get_session) injects the context-manager object rather than a SQLAlchemy Session. Any endpoint that tries to use session.add/session.commit will crash with AttributeError, and the underlying session is never entered or closed. Define the dependency as a plain generator (no decorator) or split the context manager into a separate helper so API routes receive a real session.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant