-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[AIRFLOW-6347] BugFix: Can't get task logs when serialization is enabled #7092
Conversation
Maybe we should create a new context for Jinja used to render log filename templates? |
@@ -265,12 +266,9 @@ class SerializedBaseOperator(BaseOperator, BaseSerialization): | |||
Class specific attributes used by UI are move to object attributes. | |||
""" | |||
|
|||
_decorated_fields = {'executor_config', } | |||
_decorated_fields = {'executor_config', 'params'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding this change now changes the format of the serialization we store, and since the previous format was in 1.10.7 I thin kthis means we now need to think about adding a v2 of the format and how we deal with upgrade etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this change
Codecov Report
@@ Coverage Diff @@
## master #7092 +/- ##
==========================================
- Coverage 84.93% 84.87% -0.07%
==========================================
Files 680 680
Lines 38826 38824 -2
==========================================
- Hits 32978 32951 -27
- Misses 5848 5873 +25
Continue to review full report at Codecov.
|
We've had problems in the past (around 1.8.2->1.9 time) where we changed the logging config, and old logs were no longer visible in the UI unless someone went and renamed the old files/S3 objects etc. I think the thing to do instead (and this might be a 2.0 thing) is to:
|
…led (apache#7092) (cherry picked from commit 257b571)
…is enabled (apache#7092) (cherry picked from commit 4dbe08f)
Quoting from Jira:
Problem:
When I set next config options in
airflow.cfg
:View with task logs shows infinity Js spinner, while in webserver log I see next error:
Solution:
This is because we use
self.params = params or {}
and where default value ofparams
isNone
in DAG and Operators and Dag S10n ignore all the None field.While de-serializing
params
was being set to None because of the following line:Issue link: AIRFLOW-6347
[AIRFLOW-NNNN]
. AIRFLOW-NNNN = JIRA ID** For document-only changes commit message can start with
[AIRFLOW-XXXX]
.In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.