Skip to content

Conversation

@fubuloubu
Copy link
Member

What I did

Discovered new TaskIQ version runs into a parsing bug:

Can't parse argument 0 for task create_clusters_from_stream. Reason: 1 validation error for Stream
    Input should be a valid dictionary or instance of Stream [type=model_type, input_value=<StreamCreated stream_id=...d30c179d714a72bf2529a']>, input_type=ContractLog]

How I did it

functools.wraps also takes __annotations__ along for the ride, which TaskIQ is using

How to verify it

Ran this locally, works

Checklist

  • All changes are completed
    - [ ] Change is covered in tests
    - [ ] Documentation is complete

@fubuloubu fubuloubu merged commit aaa01c5 into main Apr 11, 2025
8 checks passed
@fubuloubu fubuloubu deleted the fix/bot/taskiq-parsing branch April 11, 2025 20:41
@fubuloubu fubuloubu mentioned this pull request Apr 11, 2025
1 task
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.

1 participant