Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Improve message for payload size threshold calculation #3075

Merged

Conversation

flavioschuindt
Copy link
Contributor

@flavioschuindt flavioschuindt commented Jun 30, 2022

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Describe the new behavior from this PR, and why it's needed
Issue #

When we reach the input or output limit for task and workflow the current code returns the limit as the value configured by the user in the properties file which is in Kilobytes. This causes confusion because the actual size calculation is in bytes, so, in the end, we end up in a situation where we are comparing two different units. Also, for the particular message of the workflow limit the word output was being used for both scenarios: inpiut limit and output limit. Therefore, this PR also tries to address it by making the message generic for both cases.

cc: @v1r3n

Alternatives considered

Describe alternative implementation you have considered

@aravindanr aravindanr added the type: bug bugs/ bug fixes label Jun 30, 2022
@aravindanr aravindanr merged commit c07b79f into Netflix:main Jun 30, 2022
pmchung pushed a commit to routific/conductor that referenced this pull request Sep 6, 2023
Co-authored-by: Flávio Schuindt <flavio.schuindt@ge.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug bugs/ bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants