ashb commented on code in PR #22832:
URL: https://github.com/apache/airflow/pull/22832#discussion_r845277451
##########
airflow/serialization/serialized_objects.py:
##########
@@ -629,7 +629,7 @@ def _serialize_node(cls, op: Union[BaseOperator,
MappedOperator], include_deps:
serialize_op['_task_module'] = getattr(op, "_task_module",
type(op).__module__)
# Used to determine if an Operator is inherited from DummyOperator
- serialize_op['_is_dummy'] = op.inherits_from_dummy_operator
+ serialize_op['_is_empty'] = op.inherits_from_empty_operator
Review Comment:
Not quite- I was thinking something like
```python
if name == '_is_dummy':
name == '_is_empty`
```
in the operator deserialization code only.
##########
airflow/serialization/serialized_objects.py:
##########
@@ -629,7 +629,7 @@ def _serialize_node(cls, op: Union[BaseOperator,
MappedOperator], include_deps:
serialize_op['_task_module'] = getattr(op, "_task_module",
type(op).__module__)
# Used to determine if an Operator is inherited from DummyOperator
- serialize_op['_is_dummy'] = op.inherits_from_dummy_operator
+ serialize_op['_is_empty'] = op.inherits_from_empty_operator
Review Comment:
Not quite- I was thinking something like
```python
if name == '_is_dummy':
name == '_is_empty'
```
in the operator deserialization code only.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]