File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 15
15
require_once dirname (__FILE__ ) . '/lib/ResqueScheduler/Worker.php ' ;
16
16
17
17
$ REDIS_BACKEND = getenv ('REDIS_BACKEND ' );
18
+ $ REDIS_BACKEND_DB = getenv ('REDIS_BACKEND_DB ' );
18
19
if (!empty ($ REDIS_BACKEND )) {
19
- Resque::setBackend ($ REDIS_BACKEND );
20
+ if (empty ($ REDIS_BACKEND_DB ))
21
+ Resque::setBackend ($ REDIS_BACKEND );
22
+ else
23
+ Resque::setBackend ($ REDIS_BACKEND , $ REDIS_BACKEND_DB );
20
24
}
21
25
22
26
// Set log level for resque-scheduler
48
52
require_once $ APP_INCLUDE ;
49
53
}
50
54
55
+ $ PREFIX = getenv ('PREFIX ' );
56
+ if (!empty ($ PREFIX )) {
57
+ fwrite (STDOUT , '*** Prefix set to ' .$ PREFIX ."\n" );
58
+ Resque_Redis::prefix ($ PREFIX );
59
+ }
60
+
51
61
$ worker = new ResqueScheduler_Worker ();
52
62
$ worker ->logLevel = $ logLevel ;
53
63
58
68
}
59
69
60
70
fwrite (STDOUT , "*** Starting scheduler worker \n" );
61
- $ worker ->work ($ interval );
71
+ $ worker ->work ($ interval );
You can’t perform that action at this time.
0 commit comments