Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(worker): deprecate On in favor of RegisterWorkflow #627

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

steebchen
Copy link
Member

@steebchen steebchen commented Jun 20, 2024

Description

Type of change

  • New feature (non-breaking change which adds functionality)

What's Changed

Copy link

vercel bot commented Jun 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2024 10:08pm

@@ -213,6 +213,14 @@ func (w *Worker) NewService(name string) *Service {
return svc
}

func (w *Worker) RegisterWorkflow(workflow workflowConverter) error {
wf, ok := workflow.(*WorkflowJob)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like of the possible values of workflowConverter only WorkflowJob can have triggers

@steebchen steebchen changed the title feat(worker): add RegisterWorkflow method fix(worker): deprecate On in favor of RegisterWorkflow Jun 25, 2024
@steebchen steebchen enabled auto-merge (squash) June 25, 2024 22:09
@steebchen steebchen merged commit 5ffa3d1 into main Jun 25, 2024
25 checks passed
@steebchen steebchen deleted the feat/worker-register branch June 25, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants