waka / wn-wakajob-plugin
Plugin pour salesforce
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:october-plugin
This package is auto-updated.
Last update: 2025-01-08 13:24:16 UTC
README
Wakajob gère les jobs nécessite Utils
Background Job Manager
Crée des JOB et les retrouver
Regarder testJob pour un exemple
Voici un exemple
<?php class SomeBehavior { public function onCreateMails(){ $job = new Waka\Mailer\Jobs\MyJobClass(); $jobManager = \App::make('Waka\Wakajob\Classes\JobManager'); $jobManager->dispatch($job, "Email en cours d'envoi"); } }
If you do not want to clutter your controller (eg if you have job that is run every few minutes), you can use
$jobManager->isSimpleJob(true);
before dispatching - this will remove successful job from DB at the end.