Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add FastAPI & SocketIO minimal example #17

Merged
merged 8 commits into from
Jan 30, 2025

Conversation

nexconnectio
Copy link
Owner

Add a minimal example demonstrating pynnex worker integration with FastAPI and SocketIO:

  • Add fastapi_socketio_worker_simple.py example
  • Update examples.md with new example documentation
  • Add dictConfig example to logging.md
  • Fix worker stop signal handling

The example shows:

  • FastAPI & SocketIO integration with pynnex worker
  • Real-time WebSocket communication
  • Background task processing
  • Simple web frontend

Required: fastapi, python-socketio, uvicorn

san-tekart and others added 8 commits January 25, 2025 15:18
- Simplify task result handling by moving it to try block
- Remove redundant cancelled flag
- Replace direct asyncio.create_task with queue_task method in examples
- Clarify worker thread function naming
- Add proper worker state checks in test teardown
Add a minimal example demonstrating pynnex worker integration with FastAPI and SocketIO:
- Add fastapi_socketio_worker_simple.py example
- Update examples.md with new example documentation
- Add dictConfig example to logging.md
- Fix worker stop signal handling

The example shows:
- FastAPI & SocketIO integration with pynnex worker
- Real-time WebSocket communication
- Background task processing
- Simple web frontend

Required: fastapi, python-socketio, uvicorn
@nexconnectio nexconnectio merged commit fd93ca2 into main Jan 30, 2025
7 checks passed
@nexconnectio nexconnectio deleted the feature/add-fastapi-socketio-example branch February 2, 2025 06:23
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.

2 participants