mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/server/master/store/MantisWorkerMetadataWritable.java [200:223]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        this.state = state;
        switch (state) {
        case Accepted:
            this.acceptedAt = when;
            break;
        case Launched:
            this.launchedAt = when;
            break;
        case StartInitiated:
            this.startingAt = when;
            break;
        case Started:
            this.startedAt = when;
            break;
        case Failed:
            this.completedAt = when;
            this.reason = reason == null ? JobCompletedReason.Lost : reason;
            break;
        case Completed:
            this.completedAt = when;
            this.reason = reason == null ? JobCompletedReason.Normal : reason;
            break;
        default:
            assert false : "Unexpected job state to set";
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/server/master/store/MantisWorkerMetadataWritable.java [229:252]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        this.state = state;
        switch (state) {
        case Accepted:
            this.acceptedAt = when;
            break;
        case Launched:
            this.launchedAt = when;
            break;
        case StartInitiated:
            this.startingAt = when;
            break;
        case Started:
            this.startedAt = when;
            break;
        case Failed:
            this.completedAt = when;
            this.reason = reason == null ? JobCompletedReason.Lost : reason;
            break;
        case Completed:
            this.completedAt = when;
            this.reason = reason == null ? JobCompletedReason.Normal : reason;
            break;
        default:
            assert false : "Unexpected job state to set";
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



