-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update "dynamic"/"deterministic" usage in rules-of-workflows.mdx #18461
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
Conversation
Dynamic is fine. Non-deterministic is not. Clarifying the latter.
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.
1 files reviewed, 1 total issue(s) found.
| ### Name steps deterministically | ||
| Steps should be named deterministically (even if dynamic). This ensures that their state is cached, and prevents the step from being rerun unnecessarily. Step names act as the "cache key" in your Workflow. | ||
| Steps should be named deterministically (ie, not using the current date/time, randomness, etc). This ensures that their state is cached, and prevents the step from being rerun unnecessarily. Step names act as the "cache key" in your Workflow. |
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.
| Steps should be named deterministically (ie, not using the current date/time, randomness, etc). This ensures that their state is cached, and prevents the step from being rerun unnecessarily. Step names act as the "cache key" in your Workflow. | |
| Steps should be named deterministically (that is, not using the current date/time, randomness, etc). This ensures that their state is cached, and prevents the step from being rerun unnecessarily. Step names act as the "cache key" in your Workflow. |
Issues:
- Style Guide - (cloudflare.LatinTerms-warning) Use 'that is' instead of 'ie,', but consider rewriting the sentence.
Fix Explanation:
The suggestion to replace 'ie,' with 'that is,' is valid as it enhances clarity. The abbreviation 'ie,' is less formal and can be misinterpreted. The revised sentence maintains the original meaning while improving readability. No other issues were identified in the sentence.
Deploying cloudflare-docs with
|
| Latest commit: |
5c37951
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://59b74c74.cloudflare-docs-7ou.pages.dev |
| Branch Preview URL: | https://mhart-update-workflows-verbi.cloudflare-docs-7ou.pages.dev |
|
Files with changes (up to 15)
|
Dynamic is fine. Non-deterministic is not. Clarifying the latter.
Also fixed a minor bug. (
Date.nowwhen stringified is actually deterministic – it always outputs"[Function: now]"– it'sDate.now()that's the problem!)