title: Are pg-promise tasks atomic?
body: <p>Pretty simple question but I can't find the answer anywhere.</p>
  <p>The <code>pg-promise</code> docs say that we should avoid using transactions because they're blocking operations and that we should be using tasks instead. <a href="https://vitaly-t.github.io/pg-promise/Database.html#tx" rel="nofollow noreferrer">https://vitaly-t.github.io/pg-promise/Database.html#tx</a></p>
  <p>But what happens when a query inside of a task fails? Will the whole task be rolled back?</p>
  <p>In other words, are tasks atomic?</p>