You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
Issue: in a task, I am sending an event MyEvent, but I forgot to import MyEvent in zenaton_boot.py. It seems that then Zenaton created a event from a new class 'workflow.MyEvent' on the fly instead of using 'my_module.my_workflow.MyEvent', making logic like isinstanceof(event, MyEvent) not working in the rest of my code downstream.
Solution:
quick: Raise an exception when trying to create an event whose class is not imported in zenaton_boot.py explaining that I need to add the import
better: have a different system for imports in zenaton_boot.py, like telling Zenaton to import all Zenaton objects in a tree (ìmport my_workflows`=> would also import everything under)
The text was updated successfully, but these errors were encountered:
Issue: in a task, I am sending an event MyEvent, but I forgot to import MyEvent in
zenaton_boot.py
. It seems that then Zenaton created a event from a new class 'workflow.MyEvent' on the fly instead of using 'my_module.my_workflow.MyEvent', making logic likeisinstanceof(event, MyEvent)
not working in the rest of my code downstream.Solution:
zenaton_boot.py
explaining that I need to add the importzenaton_boot.py
, like telling Zenaton to import all Zenaton objects in a tree (ìmport my_workflows`=> would also import everything under)The text was updated successfully, but these errors were encountered: