-
Notifications
You must be signed in to change notification settings - Fork 16
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
(feat): Cron Trigger Service Capability #715
Conversation
0e45846
to
520700c
Compare
2de0101
to
6c234bb
Compare
1204573
to
5b2a911
Compare
5b2a911
to
6a3d104
Compare
"encoding/hex" | ||
) | ||
|
||
func GenerateExecutionID(workflowID, eventID string) (string, error) { |
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.
nit/ Generate
feels like a strong word for hash + hex encode. What about something like Encode
?
func GenerateExecutionID(workflowID, eventID string) (string, error) { | |
func EncodeExecutionID(workflowID, eventID string) (string, error) { |
Also, you can probably eliminate the error from the signature if you wanted to, since the hash impl used does not return errors and is just satisfying the interface.
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.
For comparison:
func GenerateExecutionID(workflowID, eventID string) (string, error) { | |
func NewExecutionID(workflowID, eventID string) string { |
func GenerateExecutionID(workflowID, eventID string) (string, error) { | |
func EncodeExecutionID(workflowID, eventID string) string { |
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.
func GenerateExecutionID(workflowID, eventID string) (string, error) { | |
func DeriveExecutionID(workflowID, eventID string) string { |
a09f782
to
d31e448
Compare
Superceded by Capabilities PR |
What
Adds a new trigger capability for scheduling workflows via a Cron schedule.