title: Updating job status in KUE node js
body: <p>I create a job:</p>
  
  <pre><code>var kue = require('kue');
  var queue = kue.createQueue();
  
  //name of the queue is myQueue
  var job = queue.create('myQueue', {
      from: 'process1',
      type: 'testMessage',
      data: {
          msg: 'Hello world!'
      }
  }).save(function(err) {
      if (err) {
          console.log('Unable to save ' + err);
      } else {
          console.log('Job ' + job.id + ' saved to the queue.');
      }
  });
  </code></pre>
  
  <p>Is there a way I can update the job status (i.e. active, failed, in progress) myself? So for example:</p>
  
  <p>The consumer picks up the job:</p>
  
  <pre><code>queue.process('myQueue', function(job, done){
    console.log('IN HERE', job.state) // returns function
  });
  </code></pre>
  
  <p>This is the function that is returned from the above:</p>
  
  <pre><code>function ( state, fn ) {
    if( 0 == arguments.length ) return this._state;
    var client   = this.client
      , fn       = fn || noop;
    var oldState = this._state;
    var multi    = client.multi();
  </code></pre>
  
  <p>And I want to hardcode a job state e.g. <code>job.state = 'failed'</code> and allow myself to update the job status when I want to?</p>
  
  <p>Is this possible in Kue?</p>