TestJob.php 355 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace ln\jobs;
  3. use ln\interfaces\JobInterface;
  4. use think\facade\Log;
  5. use think\queue\Job;
  6. class TestJob implements JobInterface
  7. {
  8. public function fire($job, $data)
  9. {
  10. Log::info(var_export($data, 1));
  11. $job->delete();
  12. }
  13. public function failed($data)
  14. {
  15. // TODO: Implement failed() method.
  16. }
  17. }