Skip to content

[BUG] Example from README.md with schedule source not updated #12

Description

@danfimov

taskiq-postgresql version

0.4.0

Python version

Python 3.12

PostgreSQL driver

asyncpg

PostgreSQL version

18

What happened?

If you get code from example from here: https://github.com/z22092/taskiq-postgresql?tab=readme-ov-file#task-scheduling

You will get:

  1. Import error (because I can't import PostgresqlSchedulerSource from taskiq_postgresql, only from taskiq_postgresql.schedule_source)
  2. Error while trying to pass various arguments to cheduler_source.add_schedule instead of one ScheduledTask instance.

Expected behavior

Example from readme.md should work without addition changes, I guess)

Steps to reproduce

  1. Copy code from example: https://github.com/z22092/taskiq-postgresql?tab=readme-ov-file#task-scheduling
  2. See errors in IDE and cry

Minimal code example

Relevant log output

Additional context

Image Image

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions