-
Notifications
You must be signed in to change notification settings - Fork 830
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
Roman/dry ingest pipeline step #3203
Conversation
cedc9fb
to
e2d3009
Compare
@@ -61,7 +61,7 @@ def _wrap_mp(self, input_kwargs: dict) -> Any: | |||
|
|||
def _set_log_level(self, log_level: int): | |||
# Set the log level for each spawned process when using multiprocessing pool | |||
logger.setLevel(log_level) | |||
make_default_logger(log_level) |
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 causes logs to be created for every process I think. In other words, I see 2 of the same log for most things.
Though I think it is worth it if it may surface errors better.
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.
Fixed this in the latest commit
90bf62c
to
0ecebcc
Compare
84506b7
to
f0ed4d7
Compare
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.
looks good. tqdm is a bonus
4cf96ac
to
85e374b
Compare
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Description
The main goal of this was to reduce the duplicate code that was being written for each ingest pipeline step to support async and not async functionality.
Additional bug fixes found and fixed:
requires_dependencies
wrapper wasn't wrapping async functions correctly. This was fixed so thatasyncio.iscoroutinefunction()
gets trigger correctly.