Uh oh!
There was an error while loading. Please reload this page.
Use async db calls in WorkflowTrigger - #38689
Conversation
uranusjr
commented
Apr 2, 2024
I don’t think we can just remove TaskStateTrigger, but let’s deprecate it for future removal. It would also be a good idea to implement an version of |
hussein-awala
commented
Apr 3, 2024
I'm working on a draft AIP to add this support, I tested it a few months ago and the results were promising: #36504 |
hussein-awala
commented
Apr 3, 2024
Also some async features are only available in sqlalchemy 2.0, so maybe we need to focus on this migration first. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
stevenschaerer
commented
Apr 3, 2024
I have deprecated |
Uh oh!
There was an error while loading. Please reload this page.
* Use async db calls in WorkflowTrigger * address PR comments * deprecate TaskStateTrigger with proper category (cherry picked from commit e6eec0c)
This closes: #38672
I opted to slightly extend some existing unit tests rather than write mostly identical new ones. If the
@sync_to_asyncdecorator and theawaits beforeself._get_countare removed the tests will fail because the trigger and dummy tasks are executed sequentially.Should I also remove
TaskStateTriggerin this PR? It is not used anymore outside of tests.