Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case WUStateID.Wait:
case WUStateID.Scheduled:
case WUStateID.UploadingFiled:
this.updateVertexStatus(1);
break;
case WUStateID.Compiling:
this.updateVertexStatus(2, true);
break;
case WUStateID.Submitted:
this.updateVertexStatus(1, true);
break;
case WUStateID.Compiled:
this.updateVertexStatus(2);
break;
case WUStateID.Aborting:
case WUStateID.Running:
this.updateVertexStatus(3, true);
break;
case WUStateID.Aborted:
case WUStateID.Archived:
case WUStateID.Completed:
this.updateVertexStatus(4);
break;
case WUStateID.Failed:
this.updateVertexStatus(4, false);
break;
case WUStateID.DebugPaused:
case WUStateID.DebugRunning:
case WUStateID.Paused:
case WUStateID.Unknown:
default:
this.updateVertexStatus(0);
case WUStateID.Wait:
case WUStateID.Scheduled:
case WUStateID.UploadingFiled:
this.updateVertexStatus(1);
break;
case WUStateID.Compiling:
this.updateVertexStatus(2, true);
break;
case WUStateID.Submitted:
this.updateVertexStatus(1, true);
break;
case WUStateID.Compiled:
this.updateVertexStatus(2);
break;
case WUStateID.Aborting:
case WUStateID.Running:
this.updateVertexStatus(3, true);
break;
case WUStateID.Aborted:
case WUStateID.Archived:
case WUStateID.Completed:
this.updateVertexStatus(4);
break;
case WUStateID.Failed:
this.updateVertexStatus(4, false);
break;
case WUStateID.DebugPaused:
case WUStateID.DebugRunning:
case WUStateID.Paused:
case WUStateID.Unknown:
default:
this.updateVertexStatus(0);