Azure / Azure/azure-functions-durable-python
Handling custom exception type from activities
- 主要言語
- Python
- スター
- 157
- フォーク
- 70
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 2
説明
I would like to understand if it is possible to handle custom exception type (from activities) inside the orchestrator function.
E.g.:
Activity
```python
raise MyException(custom_data={...})
```
Orchestrator:
```python
try:
res = yield context.call_activity("Activity", data)
except MyException as me:
print(me.custom_data)
```
The actual behaviour is that in the orchestrator function I only get the generic Exception type and I cannot differentiate the handle logic based on custom_data.
コントリビューションガイド
調査の方向性
まず、MyException を発生させる Activity と context.call_activity を呼び出す orchestrator を再現し、その後、Activity の例外がどのように orchestrator に到達するかを追跡します。カスタム例外型と custom_data を異なる処理のために保持できるかどうかを判断し、必要な動作を文書化または実装できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, python
- 領域
- backend, cloud
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 45/100