Skip to content

refactor(side-dag): refactor node processes management#1079

Merged
glevco merged 1 commit intomasterfrom
refactor/side-dag/multiprocessing
Jul 23, 2024
Merged

refactor(side-dag): refactor node processes management#1079
glevco merged 1 commit intomasterfrom
refactor/side-dag/multiprocessing

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Jul 4, 2024

Depends on #1078

Motivation

Improve the run_node_with_side_dag command so instead of a main process running the side dag node and a subprocess running the Hathor node, it's a main process running a monitor and multiple possible subprocesses running any number of nodes. For now, it only runs one side dag node and one Hathor node, but it can be easily changed to support more in the future.

Resolves #1051.

Acceptance Criteria

  • Refactor side dag CLI tool.
    • Simplify how monitoring is made and remove all message passing between processes.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco added the refactor label Jul 4, 2024
@glevco glevco self-assigned this Jul 4, 2024
@codecov
Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.13%. Comparing base (53fa539) to head (5e46ebd).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1079      +/-   ##
==========================================
+ Coverage   85.07%   85.13%   +0.05%     
==========================================
  Files         310      310              
  Lines       23558    23558              
  Branches     3561     3561              
==========================================
+ Hits        20043    20057      +14     
+ Misses       2808     2799       -9     
+ Partials      707      702       -5     

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

@glevco glevco marked this pull request as ready for review July 5, 2024 12:24
@glevco glevco requested review from jansegre and msbrogli as code owners July 5, 2024 12:24
@glevco glevco mentioned this pull request Jul 5, 2024
1 task
@glevco glevco force-pushed the feat/side-dag/signers-validation branch from 54e6fa5 to 0abf019 Compare July 5, 2024 18:38
@glevco glevco force-pushed the refactor/side-dag/multiprocessing branch from a801e48 to 12c0499 Compare July 5, 2024 18:41
@glevco glevco force-pushed the feat/side-dag/signers-validation branch from 0abf019 to 6868838 Compare July 8, 2024 21:26
@glevco glevco force-pushed the refactor/side-dag/multiprocessing branch 5 times, most recently from 02792c0 to e965a13 Compare July 11, 2024 15:25
msbrogli
msbrogli previously approved these changes Jul 12, 2024
jansegre
jansegre previously approved these changes Jul 12, 2024
@glevco glevco force-pushed the feat/side-dag/signers-validation branch from b58b125 to 59a3dd9 Compare July 18, 2024 18:10
@glevco glevco force-pushed the refactor/side-dag/multiprocessing branch 8 times, most recently from ee73bbf to e140836 Compare July 19, 2024 21:43
@glevco glevco force-pushed the feat/side-dag/signers-validation branch 2 times, most recently from 244bb92 to be45ae2 Compare July 22, 2024 19:28
@glevco glevco force-pushed the refactor/side-dag/multiprocessing branch from e140836 to 81fd0ce Compare July 22, 2024 19:31
@glevco glevco force-pushed the feat/side-dag/signers-validation branch from be45ae2 to 75c5dba Compare July 22, 2024 19:46
Base automatically changed from feat/side-dag/signers-validation to master July 22, 2024 21:04
@glevco glevco dismissed stale reviews from jansegre and msbrogli July 22, 2024 21:04

The base branch was changed.

@glevco glevco force-pushed the refactor/side-dag/multiprocessing branch from 81fd0ce to 5e46ebd Compare July 22, 2024 21:05
@glevco glevco merged commit 928bc95 into master Jul 23, 2024
@glevco glevco deleted the refactor/side-dag/multiprocessing branch July 23, 2024 15:11
This was referenced Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Refactor the side_dag command so it has a monitor process

3 participants