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: implement aws batch retries #1

Merged

Conversation

henriqueribeiro
Copy link
Collaborator

No description provided.

henriqueribeiro and others added 29 commits February 25, 2021 12:04
@@ -51,7 +51,7 @@ object EngineFunctionEvaluators {
EvaluatedValue(WomSingleFile(ioFunctionSet.pathFunctions.stderr), Seq.empty).validNel
}

private val ReadWaitTimeout = 60.seconds
private val ReadWaitTimeout = 300.seconds
Copy link
Owner

Choose a reason for hiding this comment

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

Curious why this needs to be larger than previous?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had a few problems with timeouts, so decided to increase it.

@@ -52,7 +52,7 @@ case class MetadataServiceActor(serviceConfig: Config, globalConfig: Config, ser
private val metadataReadTimeout: Duration =
serviceConfig.getOrElse[Duration]("metadata-read-query-timeout", Duration.Inf)
private val metadataReadRowNumberSafetyThreshold: Int =
serviceConfig.getOrElse[Int]("metadata-read-row-number-safety-threshold", 1000000)
serviceConfig.getOrElse[Int]("metadata-read-row-number-safety-threshold", 3000000)
Copy link
Owner

Choose a reason for hiding this comment

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

Was this due to slow db responses??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Exactly

(remotePathArray zip localPathArray zipWithIndex) flatMap {
case ((remotePath, localPath), index) =>
Seq(AwsBatchFileInput(s"$namePrefix-$index", remotePath.valueString, DefaultPathBuilder.get(localPath.valueString), workingDisk))
var localPathString = localPath.valueString
// Log.warn(s"!!!RAW: ${flag}: ${remotePath.valueString} -> ${localPathString}")
Copy link
Owner

Choose a reason for hiding this comment

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

Suggest removing commented code

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

Copy link
Owner

@markjschreiber markjschreiber left a comment

Choose a reason for hiding this comment

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

Couple of questions in the comments.

@markjschreiber markjschreiber merged commit 2eb86cf into markjschreiber:master Aug 4, 2021
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