Sage-Bionetworks/SynapseWorkflowHook

Cancellation of submission error

Closed this issue · 1 comments

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.

This should fix the issue:
f5f1d2b