DelayQueueRun.php 824 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace App\Module\DelayQueue\Console;
  3. use App\Module\Verify\File;
  4. use UCore\Console\Command;
  5. use UCore\Console\CommandSecond;
  6. use UCore\Helper\Logger;
  7. use UCore\Model\RequestLog;
  8. /**
  9. * 系统清理
  10. *
  11. */
  12. class DelayQueueRun extends CommandSecond
  13. {
  14. /**
  15. * 等待时间
  16. * @var int
  17. */
  18. protected $waitSecond = 3;
  19. /**
  20. * 间隔时长
  21. * @var int
  22. */
  23. protected $sleepSecond = 2;
  24. /**
  25. * The name and signature of the console command.
  26. *
  27. * @var string
  28. */
  29. protected $signature = 'app-delayqueue:run';
  30. /**
  31. * The console command description.
  32. *
  33. * @var string
  34. */
  35. protected $description = '延迟队列-执行模块';
  36. public function handleSecond($s)
  37. {
  38. Logger::info("");
  39. return true;
  40. }
  41. }