title: How to set query timeout in Sequelize?
body: <p>I'm looking to see how one can set the timeout time of queries in Sequelize.</p>
  
  <p>I've looked into the Sequelize docs for some info but I can't quite find what I'm looking for. The closest I have found is the "pools.acquire" option, but I'm not looking to set the timeout for an incoming connection, but rather the timeout of an ongoing query so that I may short-circuit deadlocks quickly.</p>
  
  <p><a href="http://docs.sequelizejs.com/class/lib/sequelize.js~Sequelize.html" rel="noreferrer">http://docs.sequelizejs.com/class/lib/sequelize.js~Sequelize.html</a></p>
  
  <p>Here is my sample code:</p>
  
  <pre><code>const db = new Sequelize( database, username, password, {
    host   : hostname,
    dialect: "mysql",
    define : {},
    pool: {
      max : 10,
      min : 0,
      idle: 10000
    },
  })
  </code></pre>
  
  <p>Any insight would be greatly appreciated!</p>