[Anthill-pro] Issue on 3.4.9
Varban
vvv at urbancode.com
Wed Feb 6 12:24:40 CST 2008
Uldis, can you go to the Current Activity->Agents tab and see which/how
many agents have jobs running (and how many jobs each).
Uldis Karlovs-Karlovskis wrote:
>
>
> Ok, I`ve did migration and there is the same issue as before about
> queued jobs. It can’t be job-precondition because queues are on
> different jobs so it maybe Agent Filter. It seems like server needs a
> lot of time to connect to agent and start building. Also login screen
> (like on 3.4.8 too) for Anthill is loading about 2 minutes but Dashboard
> is working fine.
>
>
>
> The situation where BL is hunged up:
>
> Workflow Name ID Start Date/Offset Duration Env/Selected Agent Status
> Actions Post Submit Build 23271 2008-02-06 06:16:23 PM EET 00:08:52 .Net
> Build Agents Farm Running Show Log
> <https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLifeId=17199>Check
> to build 310677 00:00:02 00:00:00 ah3karlovs Failed log
> <https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLifeId=17199>View
> Job
> <https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=310677>Sync
> Source Task 310678 00:00:03 00:00:00 ah3karlovs Not Needed log
> <https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLifeId=17199>View
> Job
> <https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=310678>ChangeLog
> and stamp 310679 00:00:04 00:00:00 ah3karlovs Not Needed log
> <https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLifeId=17199>View
> Job
> <https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=310679>Stamp
> this BuildLife 310680 00:00:05 00:00:00 ah3karlovs Not Needed log
> <https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLifeId=17199>View
> Job
> <https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=310680>Sync
> SCM 310681 00:00:06 00:00:00 ah3karlovs Not Needed log
> <https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLifeId=17199>View
> Job
> <https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=310681>P4
> Clean-up 310682 ah3karlovs Queued log
> <https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLifeId=17199>View
> Job
> <https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=310682>
>
>
>
> My Agent Filter script:
>
> import com.urbancode.anthill3.domain.script.agentfilter.criteria.Criteria;
>
> import com.urbancode.anthill3.domain.script.agentfilter.criteria.Where;
>
> import com.urbancode.anthill3.domain.script.agentfilter.criteria.Variable;
>
> import com.urbancode.anthill3.domain.agent.Agent;
>
> import com.urbancode.anthill3.runtime.scripting.helpers.*;
>
>
>
> org.apache.log4j.Logger logger =
> org.apache.log4j.Logger.getLogger("script");
>
> Agent agent = null;
>
> String agent_name = null;
>
> logger.warn("Filtering agents on current workflow...");
>
>
>
> if(WorkflowLookup.getCurrentCase() == null){
>
> logger.error("WorkFlowCase not found!");
>
> } else
> if(WorkflowLookup.getCurrentCase().getJobTraceArray().length < 1){
>
> logger.error("No Agents have been called before. Nothing to
> filter!");
>
> } else
> if(WorkflowLookup.getCurrentCase().getJobTraceArray()[0].getAgent() ==
> null) {
>
> logger.error("Agent not found!");
>
> } else {
>
> agent =
> WorkflowLookup.getCurrentCase().getJobTraceArray()[0].getAgent();
>
> logger.warn("Found Agent \"" + agent.getName() + "\"");
>
> agent_name = agent.getName();
>
> }
>
> agent = null;
>
> return Where.is(Variable.equals("locked/agent.name",agent_name));
>
>
>
> Can You explain what is this “· · Job Service - 19 in use, 19 total”
> in Current Activity -> Resources? It is slowly growing.
>
>
>
> For now I have running 15 BuildLifes in the same time and most of them
> have Job queued but it shouldn’t be because I have 5 build agents and
> every of them can ran at least 5 jobs in parallel.
>
>
>
> Uldis
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
More information about the Anthill-pro
mailing list