chrisboulton / php-resque-scheduler

An addon for php-resque that lets you queue jobs for execution some time in the future. Follows resque-scheduler.
MIT License
271 stars 129 forks source link

Example code #6

Closed s-alpha-1 closed 11 years ago

s-alpha-1 commented 11 years ago

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?

s-alpha-1 commented 11 years ago

nevermind, it works