Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise error when dora python operator doesn't return dora status #373

Closed
Felixhuangsiling opened this issue Nov 7, 2023 · 1 comment
Closed
Labels
linux python Python API

Comments

@Felixhuangsiling
Copy link
Contributor

Felixhuangsiling commented Nov 7, 2023

Sometimes I forgot to put operators DoraStatus.CONTINUE which will fail the code without let me knowing it.

Expected behavior
I would like to have a error being raised to let me know that my code failed.

Environments (please complete the following information):

  • System info: linux
  • Dora version: 0.2.6
  • Python version: 3.8.10
@github-actions github-actions bot added linux python Python API labels Nov 7, 2023
@haixuanTao
Copy link
Collaborator

It seems that i cannot reproduce this error.

I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
RuntimeError: Dora Runtime raised an error.

Caused by:
   0: main task failed
   1: operator object_detection/op raised an error
   2: error in Python module at /home/peter/Documents/work/dora/examples/python-operator-dataflow/object_detection.py
   3: on_event must have enum return value
   4: AttributeError: 'NoneType' object has no attribute 'value'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux python Python API
Projects
None yet
Development

No branches or pull requests

2 participants