Skip to content

Conversation

@mhart
Copy link
Contributor

@mhart mhart commented Nov 28, 2024

Dynamic is fine. Non-deterministic is not. Clarifying the latter.

Also fixed a minor bug. (Date.now when stringified is actually deterministic – it always outputs "[Function: now]" – it's Date.now() that's the problem!)

Dynamic is fine. Non-deterministic is not. Clarifying the latter.
@github-actions github-actions bot added size/xs product:workflows Workflows: https://developers.cloudflare.com/workflows/ labels Nov 28, 2024
Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

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

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

@cloudflare-workers-and-pages
Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

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

View logs

@github-actions
Copy link
Contributor

@elithrar elithrar merged commit df4f600 into production Dec 19, 2024
12 of 13 checks passed
@elithrar elithrar deleted the mhart-update-workflows-verbiage branch December 19, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workflows Workflows: https://developers.cloudflare.com/workflows/ size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants