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

Refaсtored process manager. #64

Merged
merged 5 commits into from
Mar 21, 2023
Merged

Refaсtored process manager. #64

merged 5 commits into from
Mar 21, 2023

Conversation

s3rius
Copy link
Member

@s3rius s3rius commented Mar 19, 2023

Refactored process management for workers.

Now we use ublocking event queue and a big fat custom event loop.

It closes #63. Worker hanged, because observer thread was blocking on event queue until all events are processed. To solve this problem, I had to rewrite the whole process management logic from scratch.

Signed-off-by: Pavel Kirilin <[email protected]>
Signed-off-by: Pavel Kirilin <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2023

Codecov Report

Merging #64 (db82c31) into develop (e2c07ee) will decrease coverage by 2.66%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff             @@
##           develop      #64      +/-   ##
===========================================
- Coverage    63.73%   61.08%   -2.66%     
===========================================
  Files           36       37       +1     
  Lines          899      938      +39     
===========================================
  Hits           573      573              
- Misses         326      365      +39     
Impacted Files Coverage Δ
taskiq/cli/watcher.py 0.00% <0.00%> (ø)
taskiq/cli/worker/process_manager.py 0.00% <0.00%> (ø)
taskiq/cli/worker/run.py 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@s3rius s3rius changed the title Refatored process manager. Refaсtored process manager. Mar 19, 2023
Copy link
Member

@chandr-andr chandr-andr left a comment

Choose a reason for hiding this comment

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

Very good, but not the best (rewrite it in rust plz).

s3rius added 2 commits March 19, 2023 22:32
Signed-off-by: Pavel Kirilin <[email protected]>
@booqoffsky
Copy link
Member

A W E S O M E

Signed-off-by: Pavel Kirilin <[email protected]>
@s3rius s3rius merged commit 4c34980 into develop Mar 21, 2023
@s3rius s3rius deleted the feature/process-manager branch March 21, 2023 09:50
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.

5 participants