# How to avoid the execution of on-run-start and on-run-end hooks with dbt test command

**URL:** <https://discourse.getdbt.com/t/how-to-avoid-the-execution-of-on-run-start-and-on-run-end-hooks-with-dbt-test-command/15553>\
**Category:** Help\
**Created:** [September 23, 2024, 2:46pm UTC](https://discourse.getdbt.com/t/how-to-avoid-the-execution-of-on-run-start-and-on-run-end-hooks-with-dbt-test-command/15553 "2024-09-23T14:46:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkatesh.Koila](https://avatars.discourse-cdn.com/v4/letter/v/7ea924/32.png) [@Venkatesh.Koila](https://discourse.getdbt.com/u/Venkatesh.Koila)\
**Post date:** [September 23, 2024, 2:46pm UTC](https://discourse.getdbt.com/t/how-to-avoid-the-execution-of-on-run-start-and-on-run-end-hooks-with-dbt-test-command/15553/1 "2024-09-23T14:46:18Z")

</div>

## The problem I’m having

The hook statements defined in on-run-start and on-run-end sections are getting executed twice,  
first with dbt run and then second time with dbt test.

## The context of why I’m trying to do this

How to avoid the execution of on-run-start and on-run-end hooks with dbt test command.
