我正在编写一些在Python或Java中效率很高的计算任务,但Sidekiq似乎不支持外部使用者。
我知道有一种解决方法可以使用系统调用来产生任务:
class MyWorker
include Sidekiq::Worker
def perform(*args)
`python script.py -c args` # and watch out using `ps`
end
end
有没有更好的方法来重写Sidekiq客户?
我有以下网址,需要为网址编码:This is currently the top headline on Reddit TIL Pimps wear lots of gold jewelry bought at pawn shops to “re-pawn” for bail money since cash is confiscated upon arrest but jewelry is not
我遇到了一个问题,因为这个字符串包含unicode字符,特别是引号。
我已经尝试过urllib.quote_plus(message),但这引发了以下异常:
Traceback (most rec