feat: expose stepId on context (#1169)

* feat: expose stepId on context

* fix: test context
This commit is contained in:
Gabe Ruttner
2025-01-08 13:12:25 -08:00
committed by GitHub
parent 08356f8ae4
commit cc0a8db4fd
2 changed files with 10 additions and 0 deletions

View File

@@ -49,6 +49,8 @@ type HatchetContext interface {
StepRunId() string
StepId() string
WorkflowRunId() string
Log(message string)
@@ -208,6 +210,10 @@ func (h *hatchetContext) StepRunId() string {
return h.a.StepRunId
}
func (h *hatchetContext) StepId() string {
return h.a.StepId
}
func (h *hatchetContext) WorkflowRunId() string {
return h.a.WorkflowRunId
}

View File

@@ -55,6 +55,10 @@ func (c *testHatchetContext) StepRunId() string {
panic("not implemented")
}
func (c *testHatchetContext) StepId() string {
panic("not implemented")
}
func (c *testHatchetContext) WorkflowRunId() string {
panic("not implemented")
}