Skip to content

Improve deprecation warnings #5939

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

Merged
merged 1 commit into from
Apr 5, 2025
Merged

Improve deprecation warnings #5939

merged 1 commit into from
Apr 5, 2025

Conversation

bentsherman
Copy link
Member

We deprecated several language features since 24.10:

  • include addParams
  • Process when section
  • Process shell section

Some users find these warnings intrusive, and users who run pipelines but don't write Nextflow are confused to receive a warning even though the pipeline still works correctly.

This PR makes these warnings less intrusive by ensuring that they are logged only once per run instead of once per occurrence.

Signed-off-by: Ben Sherman <[email protected]>
@bentsherman bentsherman requested a review from pditommaso April 2, 2025 20:36
Copy link

netlify bot commented Apr 2, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 10647c8
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/67ed9fe7a14ebc00087ece20

@pditommaso pditommaso merged commit ea60dfb into master Apr 5, 2025
22 checks passed
@pditommaso pditommaso deleted the fix-deprecation-warning branch April 5, 2025 14:19
ejseqera pushed a commit to ejseqera/nextflow that referenced this pull request Apr 21, 2025
ejseqera pushed a commit to ejseqera/nextflow that referenced this pull request Apr 21, 2025
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