-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from broadinstitute/mlc_stdout_stderr_symbols
stdout and stderr as symbols. Closes broadinstitute/cromwell#430
- Loading branch information
Showing
6 changed files
with
66 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
src/main/scala/cromwell/backend/model/ExecutionResult.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
package cromwell.backend.model | ||
|
||
import cromwell.backend.model.Status.Status | ||
|
||
/** | ||
* Represents status of an execution. | ||
*/ | ||
object Status extends Enumeration { | ||
type Status = Value | ||
val Created, Running, Succeeded, Failed, Canceled = Value | ||
} | ||
import cromwell.caching.ExecutionHash | ||
import wdl4s.values.WdlValue | ||
|
||
import scala.concurrent.Future | ||
|
||
|
||
sealed trait TaskStatus extends ExecutionEvent | ||
|
||
/** | ||
* Defines a task intermediate status. | ||
*/ | ||
case class TaskStatus(status: Status) extends ExecutionEvent | ||
sealed trait NonTerminalTaskStatus extends TaskStatus | ||
final case class CreatedTaskStatus(stdout: String, stderr: String) extends NonTerminalTaskStatus | ||
case object RunningTaskStatus extends NonTerminalTaskStatus | ||
|
||
/** | ||
* Defines a task final status with the resulting data. | ||
*/ | ||
case class TaskFinalStatus(status: Status, result: ExecutionResult) extends ExecutionEvent | ||
sealed trait TerminalTaskStatus extends TaskStatus | ||
final case class SucceededTaskStatus(outputs: Map[String, WdlValue], returnCode: Int, hash: ExecutionHash) extends TerminalTaskStatus | ||
case object CanceledTaskStatus extends TerminalTaskStatus | ||
|
||
sealed trait FailedTaskStatus extends TerminalTaskStatus | ||
final case class FailedWithoutReturnCodeTaskStatus(error: Throwable) extends FailedTaskStatus | ||
final case class FailedWithReturnCodeTaskStatus(error: Throwable, returnCode: Int) extends FailedTaskStatus | ||
|
||
object Implicits { | ||
implicit class EnhancedTerminalTaskStatus(val status: TerminalTaskStatus) extends AnyVal { | ||
def future: Future[TerminalTaskStatus] = Future.successful(status) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters