-
Notifications
You must be signed in to change notification settings - Fork 6
/
ResqueEvents.php
62 lines (53 loc) · 1.22 KB
/
ResqueEvents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
namespace ShonM\ResqueBundle;
final class ResqueEvents
{
/**
* Fired before a job has been enqueued
*
* @var string
*/
const BEFORE_ENQUEUE = 'resque.before_enqueue';
/**
* Fired after a job has been enqueued
*
* @var string
*/
const AFTER_ENQUEUE = 'resque.after_enqueue';
/**
* Fired once after a worker is initialized, but before it registers for work
*
* @var string
*/
const BEFORE_FIRST_FORK = 'resque.before_first_fork';
/**
* Fired before a worker forks a job, from the parent
*
* @var string
*/
const BEFORE_FORK = 'resque.before_fork';
/**
* Fired after a job has been forked, from the child
*
* @var string
*/
const AFTER_FORK = 'resque.after_fork';
/**
* Fired before the setUp and perform methods are called
*
* @var string
*/
const BEFORE_PERFORM = 'resque.before_perform';
/**
* Fired after the perform and tearDown methods are called
*
* @var string
*/
const AFTER_PERFORM = 'resque.after_perform';
/**
* Fired any time a job fails
*
* @var string
*/
const ON_FAILURE = 'resque.on_failure';
}