# Automation after finishing run/sweep

**URL:** <https://community.wandb.ai/t/automation-after-finishing-run-sweep/7163>\
**Category:** W&B Help\
**Created:** [July 9, 2024, 5:27pm UTC](https://community.wandb.ai/t/automation-after-finishing-run-sweep/7163 "2024-07-09T17:27:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leander-kurscheidt](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@leander-kurscheidt](https://community.wandb.ai/u/leander-kurscheidt)\
**Post date:** [July 9, 2024, 5:27pm UTC](https://community.wandb.ai/t/automation-after-finishing-run-sweep/7163/1 "2024-07-09T17:27:09Z")

</div>

Is there any way to trigger CI/CD after run/sweep finishes? I am mainly interested in triggering CI/CD after a sweep is finished!

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [July 11, 2024, 10:32am UTC](https://community.wandb.ai/t/automation-after-finishing-run-sweep/7163/2 "2024-07-11T10:32:59Z")

</div>

Hey @leander-kurscheidt! [Here](https://docs.wandb.ai/guides/artifacts/project-scoped-automations#event-types) you have the available event types. Currently, those only apply to artifacts so you could trigger the CI/CD when a new version is added at the end of the run.

---

<div class="post-metadata">

**Author:** ![leander-kurscheidt](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@leander-kurscheidt](https://community.wandb.ai/u/leander-kurscheidt)\
**Post date:** [July 11, 2024, 11:13am UTC](https://community.wandb.ai/t/automation-after-finishing-run-sweep/7163/3 "2024-07-11T11:13:33Z")

</div>

ah ok, I am mainly interested in running some analysis at the end of some sweep. So this would trigger if some artifact is uploaded, but that doesn’t mean the run is finished (due to a sort of race conditions). I would also have to figure out the sweep from the artifact and see whether it’s done? Not entirely sure how to do it though

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [July 15, 2024, 2:37pm UTC](https://community.wandb.ai/t/automation-after-finishing-run-sweep/7163/4 "2024-07-15T14:37:24Z")

</div>

Hey @leander-kurscheidt! Exactly, you could use our Public API (docs [here](https://docs.wandb.ai/ref/python/public-api/api#artifact)) to check which run logged the artifact and if it’s part of a sweep or not

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [July 22, 2024, 12:11pm UTC](https://community.wandb.ai/t/automation-after-finishing-run-sweep/7163/5 "2024-07-22T12:11:48Z")

</div>

Hi Leander, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!
