Skip to content

[Python SDK] Using deprecated shutdown and startup events #628

@pocesar

Description

@pocesar

Describe the bug

FastAPI warns during the startup that the AgentServer class is using deprecated startup and shutdown events, but should be using lifespan instead

https://fastapi.tiangolo.com/advanced/events/?h=life#lifespan

Steps to reproduce

  1. Go to '...'
  2. Run '...'
  3. See error

Expected behavior

Screenshots / Logs

Environment

  • Control plane version:
  • SDK version (if applicable):
  • Deployment environment (local, docker, kubernetes, etc.):

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions