-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Custom Timetable Import Error #19869
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
A possible cause to this is your |
We are experiencing this issue as well. Copying and pasting the We have several other plugins in the same directory and they are loaded fine. Just these new timetables that have a serialization error. Might try your workaround for the time being @covaliov |
Apache Airflow version
2.2.2 (latest released)
Operating System
Darwin Kernel Version 21.1.0 RELEASE_ARM64_T8101 arm64
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
python_version | 3.9.7 (default, Sep 16 2021, 23:53:23) [Clang 12.0.0 ]
What happened
The following error is displayed in Web UI:
What you expected to happen
For the custom timetable to be implemented and used by DAG.
How to reproduce
Following instructions from Custom DAG Scheduling with Timetables with following new DAG to implement:
Anything else
I have tried digging through the code and believe the issue is in this line:
airflow/airflow/serialization/serialized_objects.py
Line 149 in fb478c0
Perhaps the Custom DAG Scheduling with Timetables expects an
__eq__
implemented in theAfterWorkdayTimetable
class but it would appear that theAfterWorkdayTimetable
class imported through the DAG and theAfterWorkdayTimetable
class imported throughplugin_manager
have differentid()
's:airflow/airflow/serialization/serialized_objects.py
Line 129 in fb478c0
The only way I could get it to import successfully was via the following sequence of import statements since _get_registered_timetable uses a lazy import:
I also had the webserver and scheduler restarted and confirmed the plugin is seen via cli:
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: