mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-05 16:19:43 -06:00
feat: expose stepId on context (#1169)
* feat: expose stepId on context * fix: test context
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user