dongyingla8668 2014-11-22 02:16
浏览 90
已采纳

php-resque-scheduler和resque-web interface URI :: InvalidURIError at / delayed

I am using Chris Boulton's php port of resque (php-resque) and resque-scheduler (php-resque-scheduler), I am also using the standard resque-web interface to view jobs / queues etc.

I have not had any issues with resque-web until I recently installed resque-scheduler and setup a config for resque-web as per the instructions here.

Using php-resque-scheduler I don't have any issues (it seems) scheduling my queues to be delayed, however when I login to resque-web and click the "delayed" tab I get the following error:

URI::InvalidURIError at /delayed bad URI(is not URI?): /delayed/jobs/Namespace\Of\Job\Class?args=[%7B%22

I only get this error once a job has been set to be delayed.

My feeling is that the namespace of the PHP class is breaking something with the resque-web routing. I'm a bit stumped as I'm not massively familiar with Ruby and not keen on editing package files etc.

I am running ruby 1.9.1, on Ubuntu Trusty 14.04 if that helps. Doing resque-web -v gives me:

rack 1.2

sinatra 1.4.5

vegas 0.1.11

Any help on this one would be much appreciated!

UPDATE: I tried aliasing the class for the job and passing the aliased class through and that does not break the interface, so I think my original assumption as correct. It's not really a solution but is workable.

  • 写回答

2条回答

  • dqwn64004 2015-04-27 15:23
    关注

    My solution was to alias the class in php and pass the alias to the job:

    class_alias('My\NameSpaced\Class', 'My_NameSpaced\Class');
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥20 Python安装cvxpy库出问题
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥15 python天天向上类似问题,但没有清零
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 C#调用python代码(python带有库)
  • ¥15 活动选择题。最多可以参加几个项目?
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题