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 warning messages for default connector params #294

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

GlassOfWhiskey
Copy link
Member

This commit adds two warning messages:

  • When a QueueManagerConnector is instantiated with the default value of 1 for the maxConcurrentJobs parameter;
  • When an SSHConnector or a QueueManagerConnector defines at least one service template, but none is selected to execute a step.

This commit also substitutes the deprecated logging.WARN with the preferred logging.WARNING constant.

This commit adds two warning messages:
- When a `QueueManagerConnector` is instantiated with the default value
  of 1 for the `maxConcurrentJobs` parameter;
- When an `SSHConnector` or a `QueueManagerConnector` defines at least
  one service template, but none is selected to execute a step.

This commit also substitutes the deprecated `logging.WARN` with the
preferred `logging.WARNING` constant.
@codecov-commenter
Copy link

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (2762b17) 65.88% compared to head (b5ff6ad) 65.89%.

Files Patch % Lines
streamflow/cwl/main.py 0.00% 1 Missing ⚠️
streamflow/cwl/runner.py 0.00% 1 Missing ⚠️
streamflow/deployment/template.py 50.00% 1 Missing ⚠️
streamflow/main.py 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #294   +/-   ##
=======================================
  Coverage   65.88%   65.89%           
=======================================
  Files          82       82           
  Lines       10149    10151    +2     
  Branches     2399     2398    -1     
=======================================
+ Hits         6687     6689    +2     
- Misses       3028     3029    +1     
+ Partials      434      433    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GlassOfWhiskey GlassOfWhiskey merged commit 980a511 into master Nov 26, 2023
31 checks passed
@GlassOfWhiskey GlassOfWhiskey deleted the queue-manager-warning-messages branch November 26, 2023 22:27
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