Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
RQワーカーからタスク関数に設定を渡す最良の方法は何だろうか?
アプリの外部にあるすべての設定をテキスト ファイルに保持し、ワーカーの起動中にそれを読み取り、実際のタスクを実行するための値を取得したいと考えています。
現在、os.environ を使用しています。
ありがとう!
python-rqについて取り上げていると仮定すると、このページをここで読み、構成ファイルについてはここを読むことをお勧めします。