-
Notifications
You must be signed in to change notification settings - Fork 660
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
Add Google Batch NOT_FOUND error management #5690
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: jorgee <[email protected]>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
Should @ejseqera run stress test on this? |
I'm on it |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@ejseqera any update on this? let us know if you need assistance for this branch |
plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchTaskHandler.groovy
Outdated
Show resolved
Hide resolved
I've attempted a large nf-core/sarek stress test run (~1390 jobs) and ran into several igenomes download issues and more importantly, several Will update once I have results from the rerun with local reference data but this seems unrelated to the reference data staging errors. |
@ejseqera It as an unrelated issue, the stage of the file is failing and in the retry the hash is null. I am looking why the hash is null in this case. |
… only for array tasks Signed-off-by: jorgee <[email protected]>
I have updated the branch with the following changes |
plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchTaskHandler.groovy
Outdated
Show resolved
Hide resolved
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchTaskHandler.groovy
Outdated
Show resolved
Hide resolved
@@ -91,11 +91,13 @@ class TaskArrayCollector { | |||
// submit task directly if the collector is closed | |||
// or if the task is retried (since it might have dynamic resources) | |||
if( closed || task.config.getAttempt() > 1 ) { | |||
task.isChild = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is implicit because boolean
is false
by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have explicitly set to false to ensure it is not treat as an array when task is retried.
modules/nextflow/src/main/groovy/nextflow/processor/TaskArrayCollector.groovy
Outdated
Show resolved
Hide resolved
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
Signed-off-by: jorgee <[email protected]>
@ejseqera It was a temporal domain name resolution problem "UnknownHostException: storage.googleapis.com". The read timeout or connect timeout are not going to fix it. Maybe increase the retry config values |
I ran another large-scale test (57gB7BLSjrLuXj, ~1200 successful tasks) and it looks like the original During testing, I did encounter some other exceptions, but these are separate from the
These new findings could be addressed separately through configuration or future PRs if needed, but I don't think they impact the effectiveness of this PR's solution for the Logs for two separate runs in different regions attached. |
…BatchClient.groovy [ci skip] Signed-off-by: Paolo Di Tommaso <[email protected]>
5a93547
to
27345a6
Compare
…BatchClient.groovy [ci skip] Signed-off-by: Paolo Di Tommaso <[email protected]>
Alternative for managing task array status in Google Batch
Signed-off-by: Ben Sherman <[email protected]> Co-authored-by: Chris Hakkaart <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
@ejseqera it looks like the |
…sor.groovy [ci skip] Signed-off-by: Paolo Di Tommaso <[email protected]>
…gle-batch-v2 [ci fast] Task array improve
@@ -24,5 +24,5 @@ import groovy.transform.InheritConstructors | |||
* @author Paolo Di Tommaso <[email protected]> | |||
*/ | |||
@InheritConstructors | |||
class ProcessStageException extends ProcessException implements ShowOnlyExceptionMessage { | |||
class ProcessStageException extends ProcessUnrecoverableException implements ShowOnlyExceptionMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the rationale to change this to "unrecoverable" ?
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
This PR includes a possible fix for the NotFoundException returned by the Google Batch API when getting some tasks.
When the client.getTaskStatus throws a NotFoundException it is caught and managed in the following way:
Including a unit test producing the NotFoundException to validate the logic.
Two corner cases could not be correctly managed.