chrisboulton/php-resque-scheduler

Example code

Closed this issue · 1 comments

I tried the example code but its not completed? At least the require path is not correct.

I was able to edit to something like this

require 'lib/Resque.php';
require 'php-resque-scheduler/lib/ResqueScheduler.php';

$in = 3600;
$args = array('id' => "myemail");
ResqueScheduler::enqueueIn($in, 'email', 'SendFollowUpEmail', $args);

However when I run this, I dont see the job is listed on resque-web at http://localhost:5678/ so I assume the code does not work?

nevermind, it works