Resolve #1155: Different signature of startup/shutdown events on polling and webhooks (#1156)

* Code refactor
- Use 'or' istead of 'A if A else B'
- Raise new error from catched error: raise Error from e

* Fixed signature of startup/shutdown events
- Include the **dispatcher.workflow_data as the handler arguments
This commit is contained in:
Łukasz Tshipenchko 2023-04-08 20:38:11 +06:00 committed by GitHub
parent 5a99b78292
commit 6efef7137c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

1
CHANGES/1155.bugfix.rst Normal file
View file

@ -0,0 +1 @@
Fixed signature of startup/shutdown events to include the **dispatcher.workflow_data as the handler arguments.