[Anthill-pro] Issue on 3.4.9
Uldis Karlovs-Karlovskis
uldisk at ctco.lv
Wed Feb 6 12:30:21 CST 2008
Varban, there were for few jobs running on few agents.
I think I`ve found the issue. The cron trigger can create only one Build
Service. I had 3 - 6 Workflows configured on 3 cron schedules. So if there
are 6 Workflows triggered but only one Build Service, the workflow jobs are
executing one by one - not in parallel like on older AntHill versions.
I really don`t think this is improvement... Now I`m creating a lot of
schedules to assign one per workflow. Seems working fine. Please comment...
Uldis Karlovs-Karlovskis, C. T. Co
uldis.karlovs-karlovskis at ctco.lv
-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Varban
Sent: trešdiena, 2008. gada 6. februārī 20:25
To: AnthillPro user and support list.
Cc: support at urbancode.com
Subject: Re: [Anthill-pro] Issue on 3.4.9
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?buildLif
eId=17199>Check
> to build 310677 00:00:02 00:00:00 ah3karlovs Failed log
>
<https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLif
eId=17199>View
> Job
>
<https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=3
10677>Sync
> Source Task 310678 00:00:03 00:00:00 ah3karlovs Not Needed log
>
<https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLif
eId=17199>View
> Job
>
<https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=3
10678>ChangeLog
> and stamp 310679 00:00:04 00:00:00 ah3karlovs Not Needed log
>
<https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLif
eId=17199>View
> Job
>
<https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=3
10679>Stamp
> this BuildLife 310680 00:00:05 00:00:00 ah3karlovs Not Needed log
>
<https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLif
eId=17199>View
> Job
>
<https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=3
10680>Sync
> SCM 310681 00:00:06 00:00:00 ah3karlovs Not Needed log
>
<https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLif
eId=17199>View
> Job
>
<https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=3
10681>P4
> Clean-up 310682 ah3karlovs Queued log
>
<https://anthill.ctco.lv/tasks/project/BuildLifeTasks/viewBuildLife?buildLif
eId=17199>View
> Job
>
<https://anthill.ctco.lv/tasks/jobs/JobTasks/viewBuildSummary?job_trace_id=3
10682>
>
>
>
> 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
_______________________________________________
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