%@LANGUAGE="VBSCRIPT"%> <% '===================================================== '| | '| ADMIN Page | '| Daemon Instructions | '| | '===================================================== %> <% Option explicit ' Good idea to set when using redirect Response.Expires = 0 ' always load the page, dont store %> <% '------------ ACCESS CONTROL ------------------ %> <% '------------ Variable Definition ------------- Dim objBtnControl Dim parSortOrder '------------ Constants Declaration ----------- '------------ Variable Init ------------------- Set objBtnControl = New ActionButtonControl parSortOrder = Request("sort") If IsNull(parSortOrder) OR parSortOrder = "" Then parSortOrder = "0" End If '---------------------------------------------- %> <% '-------------------------------------------------------------------------------------------- ' Cleans up the daemon instructions table to remove old data that might have become stranded ' due to crashed daemons or failing build machines. '-------------------------------------------------------------------------------------------- Sub CleanupOldData() On Error Resume Next objEH.TryORA ( OraSession ) OraDatabase.ExecuteSQL _ "BEGIN PK_BUILDAPI.cleanup_stranded_daemon_insts; END;" objEH.CatchORA ( OraSession ) End Sub %> <% ' Clean up old data CleanupOldData ' Page Access Condition %>
| <%If parSortOrder = "1" Then%> <%ElseIf parSortOrder = "1a" Then%> <%ElseIf parSortOrder = "1b" Then%> <%Else%> <%End If%> OPERATION | <%If parSortOrder = "2" Then%> <%ElseIf parSortOrder = "2a" Then%> <%Else%> <%End If%> PROJECT | <%If parSortOrder = "3" Then%> <%Else%> <%End If%> RELEASE | MODE | PACKAGE | VERSION | SCHEDULED TIME<%=Quick_Help("SchedTime")%> | REPEAT | ADDED BY | LAST UPDATED | IN PROGRESS | EDIT/DELETE | |
| <%=DaemonInstructionOperationName(rsQry("OP_CODE"))%> | <%If rsQry("proj_id") <> "" Then%> <%=rsQry("proj_name")%> <%End If%> | <%If rsQry("rtag_name") <> "" Then%> <%=rsQry("rtag_name")%> <%End If%> | <%=Get_Official(rsQry("official"))%> | <%If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then%> <%=rsQry("pkg_name")%> <%Else%> <%=rsQry("pkg_name")%> <%End If%> | <%=rsQry("pkg_version")%> | style=color:Red<%Elseif bIsReady Then%>style=color:Green<%End If%>><%=DisplayDateTime(rsQry("SCHEDULED_DATETIME"))%> | <%=DaemonInstructionRepeatString(rsQry("OP_CODE"), rsQry("REPEAT_SECS"))%> | <%If rsQry("full_name") <> "" AND rsQry("user_email") <> "" Then%> <%=emailField(rsQry("full_name"),rsQry("user_email"))%> <%End If%> | <%=DisplayDateTime(rsQry("ADDED_DATETIME"))%> |
<%If bInProgress Then%>
<%If bResetInProgressEnabled Then%>
<%End If%>
YES
<%Else%>
NO
<%End If%>
|
<%If UserCanAddOrEditThisDaemonInst(rsQry("proj_id"), rsQry("official"), rsQry("OP_CODE")) Then%> <%Call objBtnControl.Render ( Array("btnEditDaemonInst", "btnDeleteDaemonInst"), objAccessControl )%> <%ElseIf rsQry("USER_ID") = objAccessControl.UserId Then %> <%Call objBtnControl.Render ( Array("btnDeleteDaemonInst"), objAccessControl )%> <%Else%> No Edit Permission <%End If%> | |
| <%=sortText%> |
| <%Call Action_Buttons ( "Add Daemon Instruction" )%> |
| NOTE: | |
| 1) | Instructions become overdue when they are more than 10 minutes old and are not in-progress |
| 2) | Instructions that take a long time to act upon, may cause other instructions for the same release to become overdue. This is not a real problem. |
| 3) | Instructions may become stranded in the "in-progress" state if build daemons crash, or a problem occurs on a build machine. Automatic deletion of the instruction will eventually occur (see next note). Contact a release manager administrator to correct this problem before automatic deletion. |
| 4) | Instructions with scheduled times 5 days or older will be deleted automatically. |
| 5) | Add/Edit/Delete Permissions will vary depending upon Operation, Release Mode, and User Permissions. |