-
Notifications
You must be signed in to change notification settings - Fork 215
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
Check all functions with workflow.Context as first parameter #1215
Conversation
|
Nice, thanks! May need to sign CLA (sorry if CLA thing is acting up). Can you show an example of the CLI output for: func MyWorkflow(workflow.Context) error {
doSomething()
}
func doSomething() {
doSomethingElse()
}
func doSomethingElse() {
time.Now()
} I want to make sure that this still shows the tree, though I'm sure it does. |
Well, I should have tried to run the CLI myself. It turned out that After adding an additional check for the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Will let @Quinn-With-Two-Ns take a look.
LGTM makes more sense for it to work this way to me |
fd737ca
to
cfd7794
Compare
Instead of checking only arguments of
RegisterWorkflow
consider all functions likefunc (workflow.Context, ...) ...
as workflow definitions (or functions called from workflows).Closes #1207