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

Pivotal ID # 187456681: Submission request file status #827

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

Juan-EBI
Copy link
Contributor

@Juan-EBI Juan-EBI commented Apr 18, 2024

https://www.pivotaltracker.com/story/show/187456681

  • unified update request operation
  • increased lock duration

* Update the given request files. By default only file index is updated in submission request. For other options
* @see UpdateOptions
*/
suspend fun updateRqtFile(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this change will allow to change file status in future set of changes without chaning API

@@ -56,7 +56,7 @@ internal class DistributedLockExecutor(
)

private companion object {
val DEFAULT_EXPIRATION = Duration.ofMinutes(5)
val DEFAULT_EXPIRATION = Duration.ofHours(3)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extended lock time to avoid two submission being processed concurrently after lock expire (we need refresh lock feature)

Copy link
Contributor

@jhoanmanuelms jhoanmanuelms left a comment

Choose a reason for hiding this comment

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

LGTM

requestFile: SubmissionRequestFile,
file: ExtFile,
/**
* Update the given request files. By default only file index is updated in submission request. For other options
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: It should be file, singular. The docs imply several files could be passed to the function

@Juan-EBI Juan-EBI merged commit 9878022 into master Apr 22, 2024
1 check passed
@Juan-EBI Juan-EBI deleted the feature/pivotal-187456681 branch April 25, 2024 10:03
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.

2 participants