-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Conversation
Also now silences errors in logging
Codecov Report
@@ 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
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Also reverted silence_task_prerun.
Now status is set after logging.
If silence_task_logging is not true
Now shutdown errors should be correctly raised
CI got stuck.
Perhaps the task just ran multiple times (and the final was success)
testing whether CI gets stuck on silence_task_logging=True
Moved log_running also from async task outside of task execution to make sure failure occurs even if only log_running fails (and not log_success)
With the exception of logging to run.
rocketry/session.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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
This PR has the following changes:
silence_task_logging
config option (log failures won't crash scheduler if true)