Use job group instead of parsing the task arguments

This commit is contained in:
eikek
2021-11-07 22:39:44 +01:00
parent a09f75e45e
commit 61c01ad79b
3 changed files with 10 additions and 8 deletions

View File

@ -13,7 +13,13 @@ import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}
/** Message to notify about finished jobs. They have a final state. */
final case class JobDone(jobId: Ident, task: Ident, args: String, state: JobState)
final case class JobDone(
jobId: Ident,
group: Ident,
task: Ident,
args: String,
state: JobState
)
object JobDone {
implicit val jsonDecoder: Decoder[JobDone] =
deriveDecoder[JobDone]