だから私は、スケジューラで選択が機能しない理由を理解しようとしています。現時点では、毎回新しいことわざを選ぶわけではありません。スケジューラは正常に動作し、他のコンテキストで正常に使用された選択です。
それで、私はここで何が間違っていますか?また、その情報が役立つ場合は、「インポート [プロジェクト名]」と言ってインタープリターを介してこれを実行します。
ありがとう!
from apscheduler.scheduler import Scheduler
from random import choice
#change this to a text file
cat_sayings = [
"I can haz?",
"I pooped in your shoe.",
"I ate the fish.",
"I want out.",
"Food? What...? Food?",
"When are you coming home? There's food that needs eating!",
"Lulz, I am sleeping in your laundry.",
"I didn't do it. Nope."]
sayings = choice(cat_sayings)
def cat_job(sayings):
print sayings
s = Scheduler()
s.add_cron_job(cat_job, args=[sayings], second='*/30')
s.start()