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

Adding delaystart a new workflow with 30 sec delay #85

Merged

Conversation

vishwa-uber
Copy link
Contributor

@vishwa-uber vishwa-uber commented Jan 27, 2025

Context: one customer was complaining about delay start didn't work.
But in CDNC-12162 we've had enough proof that it worked.

We don't have a delayed start workflow sample, need to have one.

The simple way to do it is to use the hello world workflow as a template to create a new workflow. Need to:

copy and paste the entire hello world workflow
change the workflow name so that it won't conflict with helloworld workflow
add a delay start option in workflowOptions
update the readme about how to run the new workflow

One example of delay start option can be added in here. In the attached picture it also shows how to add the option.
DelayStart: time.Minute * 5,

@neil-xie
Copy link
Member

Could you add description to the pr introducing the changes you made

@ibarrajo ibarrajo requested a review from a team January 27, 2025 22:33
cmd/samples/README.md Outdated Show resolved Hide resolved
@vishwa-uber vishwa-uber requested a review from ibarrajo January 27, 2025 23:06
@vishwa-uber vishwa-uber changed the title [CDNC-12181] Adding delaystart a new workflow with 30 sec delay Adding delaystart a new workflow with 30 sec delay Jan 28, 2025
make <WORKFLOW NAME>

Example:
make delaystart
Copy link
Member

Choose a reason for hiding this comment

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

nit: I'd avoid adding an extra example here. make helloworld seems sufficient to show how to build an individual workflow

@@ -0,0 +1,159 @@
[
Copy link
Member

Choose a reason for hiding this comment

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

not used. lets delete

@vishwa-uber vishwa-uber merged commit fe92842 into cadence-workflow:master Jan 28, 2025
1 check passed
@vishwa-uber vishwa-uber deleted the vishwa/delay_start_example branch January 28, 2025 23:24
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.

4 participants