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

ENH: Option to silence log errors #83

Merged
merged 44 commits into from
Sep 1, 2022
Merged

ENH: Option to silence log errors #83

merged 44 commits into from
Sep 1, 2022

Conversation

Miksus
Copy link
Owner

@Miksus Miksus commented Aug 24, 2022

This PR has the following changes:

  • add: silence_task_logging config option (log failures won't crash scheduler if true)
  • More robust shut down (hooks are always run)
  • Better scheduler log messages/levels

Also now silences errors in logging
@Miksus Miksus added enhancement New feature or request core Relates to the core functionalities (ie. base classes) labels Aug 24, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2022

Codecov Report

Merging #83 (9aba2da) into master (7584cb1) will increase coverage by 0.25%.
The diff coverage is 96.96%.

@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
+ Coverage   91.14%   91.39%   +0.25%     
==========================================
  Files          88       89       +1     
  Lines        4368     4474     +106     
==========================================
+ Hits         3981     4089     +108     
+ Misses        387      385       -2     
Impacted Files Coverage Δ
rocketry/core/schedule.py 91.66% <95.45%> (+2.01%) ⬆️
rocketry/core/task.py 93.30% <96.87%> (+0.29%) ⬆️
rocketry/exc.py 100.00% <100.00%> (ø)
rocketry/session.py 91.97% <100.00%> (+0.02%) ⬆️
rocketry/testing/log.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -50,7 +51,8 @@ class Config:
task_logger_basename: str = "rocketry.task"
scheduler_logger_basename: str = "rocketry.scheduler"

silence_task_prerun: bool = False # Whether to silence errors occurred in setting a task to run
silence_task_prerun: Optional[bool] = None # Whether to silence errors occurred in setting a task to run
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is probably incorrect. Should not be optional and by default False

@Miksus Miksus merged commit b36a3bd into master Sep 1, 2022
@Miksus Miksus deleted the dev/silence_log_error branch September 1, 2022 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Relates to the core functionalities (ie. base classes) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants