Answers.Body: <p>I found a solution. In my control panel module javascript, I can do</p>
  
  <pre><code>Craft.cp.on('setJobInfo', function(e){
    console.log(e);
  });
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-12T09:50:27.480Z
Answers.LastActivityDate: 2019-04-12T23:50:13.600Z
Answers.LastEditDate: 2019-04-12T23:50:13.600Z
Answers.UserDisplayName: Chris Angel
Body: <p>In Control Panel we can see the progress of a certain job. I would like to hook on events like "DONE" or "FAILED" and do certain things in Control Panel, e.g. reloading the page, or redirecting somewhere</p>
  
  <p>Update: in Craft.js line 11429, I can find </p>
  
  <pre><code>// Fire a setJobInfo event
  this.trigger('setJobInfo');
  </code></pre>
  
  <p>Maybe I can do something with it.</p>
  
Tags: <control-panel><queue>
Title: Craft Queues: Job Event
ThreadText: # Craft Queues: Job Event
  
  (Asked by: username_0 on 2019-04-12)
  
  In Control Panel we can see the progress of a certain job. I would like to hook on events like "DONE" or "FAILED" and do certain things in Control Panel, e.g. reloading the page, or redirecting somewhere
  
  Update: in Craft.js line 11429, I can find
  
  ```
  // Fire a setJobInfo event
  this.trigger('setJobInfo');
  
  ```
  
  Maybe I can do something with it.
  
  **Tags:** control-panel, queue
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-04-12. Score: 1 | Accepted answer
  
  I found a solution. In my control panel module javascript, I can do
  
  ```
  Craft.cp.on('setJobInfo', function(e){
    console.log(e);
  });
  
  ```
  
  
  ---
  
  