Skip to content

Commit

Permalink
move to report itself
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Dec 13, 2024
1 parent 28cffe3 commit 16811eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class DataHubGcSourceReport(
):
expired_tokens_revoked: int = 0
cleanup_metrics: Dict[str, CleanupOperationMetrics] = field(default_factory=dict)
event_not_produced_warn: bool = False

def record_success(self, operation_name: str, timing: float) -> None:
self.cleanup_metrics[operation_name] = CleanupOperationMetrics(
Expand Down Expand Up @@ -135,7 +136,6 @@ def __init__(self, ctx: PipelineContext, config: DataHubGcSourceConfig):
self.ctx = ctx
self.config = config
self.report = DataHubGcSourceReport()
self.report.event_not_produced_warn = False
self.graph = ctx.require_graph("The DataHubGc source")
self.dataprocess_cleanup = DataProcessCleanup(
ctx, self.config.dataprocess_cleanup, self.report, self.config.dry_run
Expand Down

0 comments on commit 16811eb

Please sign in to comment.