Closed olotintemitope closed 6 years ago
Hi,
The bundle is indeed very useful. I have 2 use cases
public function createCronJob(\DateTime $lastRunAt) { return new Job('business:invoice-reminder'); }
I will like to do this $job = new Job('business:invoice-reminder', [$invoiceReminder->getId()]);
$job = new Job('business:invoice-reminder', [$invoiceReminder->getId()]);
public function shouldBeScheduled(\DateTime $lastRunAt) { return time() - $lastRunAt->getTimestamp() >= 180; // Executed at most every minute. }
should allow for dynamic time rather than hardcoding a generic time for the scheduler to run at intervals.
I'm looking forward to a quick response. Thanks
I think you can already do what you need. But you probably need some sort of schedule command that runs every day/hour and triggers reminder jobs.
Hi,
The bundle is indeed very useful. I have 2 use cases
I will like to do this
$job = new Job('business:invoice-reminder', [$invoiceReminder->getId()]);
should allow for dynamic time rather than hardcoding a generic time for the scheduler to run at intervals.
I'm looking forward to a quick response. Thanks