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

feat: stop policy monitor job when transfer is already completed/terminated #3520

Merged

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Oct 9, 2023

What this PR changes/adds

Check the TransferProcess state on every iteration, if it is completed/terminated/deprovisioned by other processes or user actions, move the PolicyMonitorEntry to COMPLETED

Why it does that

policy monitor

Further notes

Linked Issue(s)

Closes #3506

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt force-pushed the 3506-complete-policy-monitor branch from 6c9daad to f488ce7 Compare October 9, 2023 10:00
@codecov-commenter
Copy link

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (9d39f5c) 72.07% compared to head (f488ce7) 72.06%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3520      +/-   ##
==========================================
- Coverage   72.07%   72.06%   -0.01%     
==========================================
  Files         848      848              
  Lines       17092    17102      +10     
  Branches      958      960       +2     
==========================================
+ Hits        12319    12325       +6     
- Misses       4366     4369       +3     
- Partials      407      408       +1     
Files Coverage Δ
...licy/monitor/manager/PolicyMonitorManagerImpl.java 92.72% <100.00%> (-7.28%) ⬇️

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

@ndr-brt ndr-brt merged commit 2bfcdd7 into eclipse-edc:main Oct 10, 2023
16 checks passed
@ndr-brt ndr-brt deleted the 3506-complete-policy-monitor branch October 10, 2023 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request policy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

policy-monitor: it should stop whenever a Transfer gets completed or terminated
5 participants