Skip to content

Commit 8148299

Browse files
committed
🎯 feat: mark finally code for push metric after exec.
1 parent 69b81bb commit 8148299

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/ddeutil/workflow/stages.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,9 @@ def execute(
409409
info={"execution_time": time.monotonic() - ts},
410410
extras=self.extras,
411411
)
412+
finally: # pragma: no cov
413+
# TODO: Implement sending metric on this line.
414+
pass
412415

413416
def _execute(
414417
self,

src/ddeutil/workflow/workflow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ class Workflow(BaseModel):
9999
description="An extra parameters that want to override config values.",
100100
)
101101
name: str = Field(description="A workflow name.")
102-
type: Literal["Workflow"] = Field(default="workflow")
102+
type: Literal["Workflow"] = Field(
103+
default="Workflow",
104+
description="A type of this config data that will use by discriminator",
105+
)
103106
desc: Optional[str] = Field(
104107
default=None,
105108
description=(

0 commit comments

Comments
 (0)