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

Minor Work Items fixes #1116

Merged
merged 4 commits into from
Oct 26, 2023
Merged

Conversation

cmin764
Copy link
Contributor

@cmin764 cmin764 commented Oct 24, 2023

This change will allow users to be able to reserve new inputs without being obliged to release the lastly retrieved item. This can be achieved explicitly by setting auto_release=False when calling keywords like Get Input Work Item and For Each Input Work Item.

A couple of other bugfixes along the way:

  • Fixed return types.
  • Correctly return the active input (the set one or the lastly retrieved).
  • Improved logging for dirty items.
  • Internal calls flag refactoring. (cleaner naming)
  • Adequate payload clearing.

Slack thread
Test Task package
CR Process

@cmin764 cmin764 added feature New functionality to add in consideration Might not get on the roadmap labels Oct 24, 2023
@cmin764 cmin764 self-assigned this Oct 24, 2023
@@ -1109,17 +1117,15 @@ def _release_on_failure(self, attributes):
state=State.FAILED,
exception_type=Error.APPLICATION,
message=message,
_auto_release=True,
_internal_release=True,
Copy link
Contributor Author

@cmin764 cmin764 Oct 24, 2023

Choose a reason for hiding this comment

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

@osrjv Like you thought, wondering if now it makes sense to just release all the non-released items as FAIL during the failed Step Run. (iterating through all the inputs and checking if there's one that wasn't released and for each applying this kind of release)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never mind, we decided to pull back the auto_release switch.

@cmin764
Copy link
Contributor Author

cmin764 commented Oct 26, 2023

Tested locally and in Control Room with the following processes:

@cmin764 cmin764 merged commit 3d57f42 into master Oct 26, 2023
12 checks passed
@cmin764 cmin764 deleted the feature/allow-reserving-multiple-items branch October 26, 2023 13:58
@cmin764 cmin764 changed the title Allow reserving multiple input Work Items Minor Work Items fixes Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality to add in consideration Might not get on the roadmap
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant