pancts
V2EX  ›  PHP

php-resque 求助~

  •  
  •   pancts · Dec 22, 2015 · 2383 views
    This topic created in 3820 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   ·   833 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:33 · PVG 04:33 · LAX 13:33 · JFK 16:33
    ♥ Do have faith in what you're doing.