I'm using a snapshot in my pipeline. Every time I build/run it, I want to delete/truncate some rows before it runs. I tried using pre hook and also I tried using post hook for on last model .Both encountered an error: Found a cycle.

encountered an error: Found a cycle

I’m using a snapshot in my pipeline. Every time I build/run it, I want to delete/truncate some rows before it runs.

Prehook and Posthook

Some example code or error messages

Put code inside backticks
  to preserve indentation
    which is especially important 
      for Python and YAML!