問題タブ [python-rq]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
713 参照

python - python-rq で別の redis ジョブをスケジュールする redis ジョブをスケジュールする

シリアルで実行したいジョブと、同時に並行して実行したいジョブの 2 種類があります。ただし、並列ジョブを順次スケジュールする必要があります (まだフォローしている場合)。あれは:

  1. A を行います。
  2. A を待って、B を実行します。
  3. B を待って、C の 2 つ以上のバージョンをすべて同時に実行します。

私の考えでは、2 つの redis キューがあり、serial_queue にはワーカーが 1 つしかありません。そして、複数のワーカーを持つ parallel_queue 。

しかし、現在、このセットアップでは、 AttributeError: module '__main__' has no attribute 'schedule_fetch_tweets'. この関数を適切にパッケージ化するにはどうすればよいpython-rqですか?