Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
背景b+;Ruby脚本_Ruby_Backgroundrb - Fatal编程技术网

背景b+;Ruby脚本

背景b+;Ruby脚本,ruby,backgroundrb,Ruby,Backgroundrb,我“想”安排一个带有BackgrounDRb的ruby脚本。可能吗? 我阅读了这两个网站的示例,但没有找到答案: 谢谢。我找到了答案,从backgroundrb工作者那里执行ruby脚本是不可能的,或者至少我做不到 我找到的最好的方法是将我的ruby脚本重写(主要是复制/粘贴)到一个特定的worker中,它工作得很好。BackgrounDRb gem已经有5年没有被碰过了。如果可以的话,换成resque或sidekiq做背景工作。我同意,但我不得不在工作中使用它。无论如何,我找到了解决方


我“想”安排一个带有BackgrounDRb的ruby脚本。可能吗? 我阅读了这两个网站的示例,但没有找到答案:


谢谢。

我找到了答案,从backgroundrb工作者那里执行ruby脚本是不可能的,或者至少我做不到

我找到的最好的方法是将我的ruby脚本重写(主要是复制/粘贴)到一个特定的worker中,它工作得很好。

BackgrounDRb gem已经有5年没有被碰过了。如果可以的话,换成resque或sidekiq做背景工作。我同意,但我不得不在工作中使用它。无论如何,我找到了解决方案,我必须创建一个worker,并在其中复制我的脚本。所以现在它工作得很好。