pancts
V2EX  ›  PHP

php-resque 求助~

  •  
  •   pancts · Dec 22, 2015 · 2389 views
    This topic created in 3822 days ago, the information mentioned may be changed or developed.

    想把 php-resque 引入 tp 框架里面来

    然后 worker 用 cli 运行

    但是发现 job 不会写了。。想了好多办法都是提示找不到 job 类

    <?php
    namespace Home\Controller;
    
    use Think\Controller;
    
    class ResqueController extends Controller
    {
        public function resque(){
    
    
    
            require_once __DIR__ . '/../../../../php-resque/bin/resque';
    
            // $asd = new PHP_Job;
            // $asd->perform();
            // dump($asd);
        }
    }
    

    worker 需要的 job 类该怎么写 TAT

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3372 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:00 · PVG 20:00 · LAX 05:00 · JFK 08:00
    ♥ Do have faith in what you're doing.