tag:help.appveyor.com,2012-11-13:/discussions/questions/1005-av-project-dependenciesAppVeyor: Discussion 2018-10-19T08:17:02Ztag:help.appveyor.com,2012-11-13:Comment/360855352015-02-19T02:22:52Z2015-02-19T02:22:52ZAV-Project dependencies<div><p>Well, I don't think an issue will help here as the case is very
specific :) ...and there is custom logic which is really hard to
generalize</p>
<p>Why wouldn't you try using AV REST API for that and see if that
works: <a href=
"http://www.appveyor.com/docs/api/projects-builds#cancel-build">http://www.appveyor.com/docs/api/projects-builds#cancel-build</a></p>
<p>You can easily call it using PS on "build faild" event of
Website_A build.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/360855352015-02-19T02:39:25Z2015-02-19T02:39:25ZAV-Project dependencies<div><p>really specific? i thought that would be a common thing :/ (we
used that from TeamCity, btw).</p></div>Pure Krometag:help.appveyor.com,2012-11-13:Comment/360855352015-02-19T02:52:13Z2015-02-19T02:52:13ZAV-Project dependencies<div><p>How does it work/get configured in TC?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/360855352015-02-24T00:09:48Z2015-02-24T00:09:48ZAV-Project dependencies<div><p>I've uninstalled TC once we started using AV :/</p>
<p>I just think there was a drop down box in each <em>project</em>,
which listed the other projects. So i guess, when the project
started, it checked if the 'dependent project' was green or not. if
not, it didn't run.</p></div>Pure Krometag:help.appveyor.com,2012-11-13:Comment/360855352015-02-24T17:05:13Z2015-02-24T17:05:13ZAV-Project dependencies<div><p>What if dependent project is "pending"?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/360855352015-02-24T21:38:59Z2015-02-24T21:38:59ZAV-Project dependencies<div><p>Pending? not sure I understand?</p>
<p>In AV, a project is idle, queued or running. regardless of the
dependencies, once a parent fails, the chidren all get cancelled.
That's how i see it .. ??</p></div>Pure Krometag:help.appveyor.com,2012-11-13:Comment/360855352015-02-24T23:32:31Z2015-02-24T23:32:31ZAV-Project dependencies<div><p>Yeah, I meant "running".</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/360855352015-02-24T23:42:14Z2015-02-24T23:42:14ZAV-Project dependencies<div><p>ah. can't you just fire off a cancel? it it's queued, then it's
now de-queued. else it's stopped and de-queued.</p>
<p>It could happen if you have</p>
<ul>
<li>multiple agents running</li>
<li>you manually start a child project</li>
</ul>
<p>and then the parent-or-a-child-dependency project is triggered
via webhook to queue/run.</p>
<p>I can't remember if this dependency thing worked when we
manually started a project, in TC. eg. we manually kicked off a run
of Child_B .. which has a depdency of Parent_A ... i can't remember
if Parent_A auto-queued up and ran first. I don't think it did. I
think it only happened for webhooks, etc.</p></div>Pure Krome