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

User initiated pausing #16

Merged
merged 14 commits into from
Mar 4, 2024
Merged

User initiated pausing #16

merged 14 commits into from
Mar 4, 2024

Conversation

derekpierre
Copy link
Member

@derekpierre derekpierre commented Feb 28, 2024

atxm_state_machine

Fixes #10 .

…ling the different types of txs appropriately.
…e in providing a callback to alert the user about pausing.

Move queue_transaction to _Machine instead - more applicable there since internals of _Machine are used.
Move exposed functions to their own section in _Machine.
…any processing for this execution round of the machine; reasses during next execution round.
Pause will cause the looping task to stop (sleep), and resume will cause the looping task to start (wake).
Idle state itself does not need processing, just setting of the interval when it is transitioned into.
… a tx got queued, OR we are in pause and need to be woken up.
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 98.16514% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 82.90%. Comparing base (b29c763) to head (4d55f76).
Report is 1 commits behind head on main.

Files Patch % Lines
atxm/machine.py 96.77% 1 Missing ⚠️
atxm/utils.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   81.30%   82.90%   +1.59%     
==========================================
  Files          13       13              
  Lines         920      971      +51     
==========================================
+ Hits          748      805      +57     
+ Misses        172      166       -6     

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

@derekpierre derekpierre self-assigned this Feb 29, 2024
@derekpierre derekpierre changed the title [WIP] User initiated pausing User initiated pausing Feb 29, 2024
@derekpierre derekpierre marked this pull request as ready for review February 29, 2024 15:18
Copy link
Member

@vzotova vzotova left a comment

Choose a reason for hiding this comment

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

LGTM (still not able to provide good feedback)

@KPrasch KPrasch merged commit ee41fa7 into nucypher:main Mar 4, 2024
4 checks passed
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.

Only allow user-directed pausing of AutomaticTxMachine
4 participants