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

(feat): Cron Trigger Service Capability #715

Closed
wants to merge 2 commits into from
Closed

Conversation

justinkaseman
Copy link
Contributor

@justinkaseman justinkaseman commented Aug 20, 2024

What

Adds a new trigger capability for scheduling workflows via a Cron schedule.

go.mod Outdated Show resolved Hide resolved
@cedric-cordenier cedric-cordenier force-pushed the CAPPL-6-formalize-trigger-API branch 2 times, most recently from 1204573 to 5b2a911 Compare August 26, 2024 09:49
"encoding/hex"
)

func GenerateExecutionID(workflowID, eventID string) (string, error) {
Copy link
Collaborator

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?

Suggested change
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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

For comparison:

Suggested change
func GenerateExecutionID(workflowID, eventID string) (string, error) {
func NewExecutionID(workflowID, eventID string) string {
Suggested change
func GenerateExecutionID(workflowID, eventID string) (string, error) {
func EncodeExecutionID(workflowID, eventID string) string {

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
func GenerateExecutionID(workflowID, eventID string) (string, error) {
func DeriveExecutionID(workflowID, eventID string) string {

Base automatically changed from CAPPL-6-formalize-trigger-API to main August 28, 2024 12:16
@justinkaseman
Copy link
Contributor Author

Superceded by Capabilities PR

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.

3 participants