<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>

CC BY-SA 4.0
2019-04-12T09:50:27.480Z
2019-04-12T23:50:13.600Z
2019-04-12T23:50:13.600Z
Chris Angel
<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>

<control-panel><queue>
Craft Queues: Job Event
# 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);
});


---

