Skip to content

Commit

Permalink
Append module to operator name in job context (apache#62)
Browse files Browse the repository at this point in the history
* Append module to operator name in job context

Signed-off-by: wslulciuc <willy@datakin.com>
  • Loading branch information
wslulciuc authored Sep 15, 2020
1 parent dee9bf6 commit 90cc8ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion marquez_airflow/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ def report_task(self,
# If no extractor found or failed to extract metadata,
# report the task metadata
if not steps_metadata:
operator = f"{task.__class__.__module__}.{task.__class__.__name__}"
steps_metadata = [StepMetadata(
name=task_name,
context={
'airflow.operator': task.__class__.__name__,
'airflow.operator': operator,
'airflow.task_info': str(task.__dict__)
})]

Expand Down

0 comments on commit 90cc8ed

Please sign in to comment.