Skip to content

Error handling for functions or generators? #100

Description

@yann-combarnous

When a generator raises an exception, currently, this is the TaskIq error I get:

Task exception was never retrieved
future: <Task finished name='schedule_1bf62f60833f466dbe08e4d1c6d33d86' coro=<delayed_send() done, defined at /usr/local/lib/python3.13/site-packages/taskiq/cli/scheduler/run.py:108> exception=taskiq.exceptions.SendTaskError()>

How to properly handle exception in this case, for instance by adding the exception message to logging?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions