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

Add clarity around variables used with scheduled triggers #2800

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MarcL
Copy link
Contributor

@MarcL MarcL commented Jan 31, 2025

Add some clarity around how variables don't work as expected with scheduled triggers:

  • Update scheduled trigger page to include a warning around using variables in cron expressions
  • Update scheduled triggers common issues page to include details of variables not working as expected

Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for n8n-docs ready!

Name Link
🔨 Latest commit fbeeacb
🔍 Latest deploy log https://app.netlify.com/sites/n8n-docs/deploys/67a1eb1553aa7d0008ea042a
😎 Deploy Preview https://deploy-preview-2800--n8n-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Jan 31, 2025

Overall readability score: 44.9 (🔴 -0.01)

File Readability
common-issues.md 67.6 (🔴 -3.94)
index.md 84.85 (🔴 -4.25)
View detailed metrics

🟢 - Shows an increase in readability
🔴 - Shows a decrease in readability

File Readability FRE GF ARI CLI DCRS
common-issues.md 67.6 56.35 9.15 9.5 10.2 7.63
  🔴 -3.94 🔴 -9.58 🔴 -0.72 🔴 -0.6 🔴 -0.06 🔴 -0.05
index.md 84.85 67.76 6.57 7.6 8.8 5.7
  🔴 -4.25 🔴 -9.27 🔴 -0.51 🔴 -0.5 🔴 -0.47 🔴 -0.14

Averages:

  Readability FRE GF ARI CLI DCRS
Average 44.9 35.72 11.36 14.57 14.19 8.41
  🔴 -0.01 🔴 -0.01 🟢 +0 🟢 +0 🟢 +0 🟢 +0
View metric targets
Metric Range Ideal score
Flesch Reading Ease 100 (very easy read) to 0 (extremely difficult read) 60
Gunning Fog 6 (very easy read) to 17 (extremely difficult read) 8 or less
Auto. Read. Index 6 (very easy read) to 14 (extremely difficult read) 8 or less
Coleman Liau Index 6 (very easy read) to 17 (extremely difficult read) 8 or less
Dale-Chall Readability 4.9 (very easy read) to 9.9 (extremely difficult read) 6.9 or less

@evilnick
Copy link
Contributor

@MarcL Many thanks for your efforts here - I'm going to add some comments/suggestions as I see there have been some questions and issues related to this and it would be good to clear them all up at once.

@evilnick evilnick assigned evilnick and unassigned evilnick Jan 31, 2025
@evilnick evilnick self-requested a review January 31, 2025 16:54
Copy link
Contributor

@evilnick evilnick left a comment

Choose a reason for hiding this comment

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

Thanks again @MarcL. Just a few comments to hopefully make this even more useful!


### Variables not working as expected

While variables can be used in the scheduled trigger, their values only get evaluated when the workflow is activated. After activating the worfklow, you can alter a variable's value in the settings but it won't change how often the workflow runs. To work around this, you must stop and then re-activate the workflow to apply the updated variable value.
Copy link
Contributor

Choose a reason for hiding this comment

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

Some of the queries I have seen have been along the lines of "If i have a schedule of 1 hour and I edit the workflow and save it, does the one hour reset to from the time I saved it?" It would be good if we could answer that here too!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@evilnick - Do you mean that I should add this as a separate point? It's not related to variables right?

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.

2 participants