Skip to content

Commit

Permalink
Implement MicrobatchModelRunner.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Nov 21, 2024
1 parent 255eaf2 commit 052d699
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/dbt/task/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,12 @@ def execute(self, model, manifest):


class MicrobatchModelRunner(ModelRunner):
batch_idx: Optional[int] = None
batches: Dict[int, BatchType] = {}
relation_exists: bool = False
def __init__(self, config, adapter, node, node_index: int, num_nodes: int):
super().__init__(config, adapter, node, node_index, num_nodes)

self.batch_idx: Optional[int] = None
self.batches: Dict[int, BatchType] = {}
self.relation_exists: bool = False

def set_batch_idx(self, batch_idx: int) -> None:
self.batch_idx = batch_idx
Expand Down

0 comments on commit 052d699

Please sign in to comment.