Sage-Bionetworks / SynapseWorkflowHook

Code for linking a workflow engine to a Synapse evaluation queue
Apache License 2.0
4 stars 1 forks source link

Cancellation of submission error #32

Closed thomasyu888 closed 5 years ago

thomasyu888 commented 5 years ago

When the submission is cancelled due to being over the quota vs clicking the cancel button, I think you currently do a docker stop. however, this causes this error:

workflow-hook_1_ac4ede79d342 | [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project WorkflowHook: An exception occured while executing the Java class. null: InvocationTargetException: The following workflow job(s) are running but have no corresponding open Synapse submissions.
workflow-hook_1_ac4ede79d342 | [ERROR]  workflow_job.dab3a00e-0147-4148-baad-79c82cb4ca9d
workflow-hook_1_ac4ede79d342 | [ERROR] One way to recover is to delete the workflow job(s).
workflow-hook_1_ac4ede79d342 | [ERROR] -> [Help 1]
workflow-hook_1_ac4ede79d342 | [ERROR] 
workflow-hook_1_ac4ede79d342 | [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
workflow-hook_1_ac4ede79d342 | [ERROR] Re-run Maven using the -X switch to enable full debug logging.
workflow-hook_1_ac4ede79d342 | [ERROR] 
workflow-hook_1_ac4ede79d342 | [ERROR] For more information about the errors and possible solutions, please read the following articles:
workflow-hook_1_ac4ede79d342 | [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
workflow-hook_1_ac4ede79d342 | [Thread-1] INFO org.sagebionetworks.ShutdownHook - Shut down signal received.
workflow-hook_1_ac4ede79d342 | [Thread-1] INFO org.sagebionetworks.ShutdownHook - Shut down complete.

You will have to also remove the container for the hook to continue running.

brucehoff commented 5 years ago

This should fix the issue: https://github.com/Sage-Bionetworks/SynapseWorkflowHook/commit/f5f1d2bded6ca09ee6b08f9899e5ce9b07f578a6