title: Grails: Saving domain models with GORM inside an async task
body: <p>I'm on Grails 2.3.5 and I'm saving data with gorm inside a task block.
  When saving the domain model the task hangs.</p>
  
  <p>Here an excerpt:</p>
  
  <pre><code>task {
     def j = new Job()
     j.name = "test"
     j.save()
  
     println "saved !"  // never get here 
  }
  </code></pre>
  
  <p>Any idea on how to save domain models inside a task block ?</p>
  
  <p>Thanks
  Luca</p>