Option of defining an environment script for starting engines (with SSHEngineSetLauncher)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
調査の方向性
まず SSHEngineSetLauncher と SSHLauncher を読み、次に issue で説明されている小さなクロスプラットフォームテストスクリプトと、subprocess.Popen の環境処理を調べます。環境スクリプトが Linux と Windows で engine 環境を準備でき、Python プロセスのハンドルが shell を指すことなく、実装テストとドキュメントがある状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We need to adapt the environment before starting the actual ipp engine (through the SSHEngineSetLauncher). Adapting the environment via the environment parameter (in class SSHLauncher) is possible, but it's not very practical, since the launcher needs to know all the engine computer details in advance.
Calling a local environment script before starting the engine would give much more flexibility and would easily allow starting the engine e.g. in a python virtual environment, conda environment, etc.
Although the general idea is quite simple the actual implement is not as easy. The problem: one cannot simply start a shell, next the environment script and then the actual command because the process handle (in python) would point to the shell and not the actual command. Hence, the retrieved process id would be incorrect. Using some system code it would be still possible to retrieve the true process id, but this is especially difficult in windows which is why I tested an alternative solution:
Starting a shell, outputting all environment variable, running the environment script and outputting all environment variable again. A bit of python code analyses the output and collects the environment variable changes (especially added and/or changed env.vars). I have implemented a small test script that works under linux and windows.
The collected changes can then be easily passed to the env parameter of subprocess.Popen function.
Does this sound like an appropriate idea and solution?
As before I'm happy to provide the implementation, tests, documentation, etc.
- 主要言語
- Jupyter Notebook
- スター
- 2.6k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ipython/ipyparallel のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
ipython/ipyparallel#984 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ipython/ipyparallel#937 · コメント 4 件 ·
-
question
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ipython/ipyparallel#897 · コメント 12 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ipython/ipyparallel#882 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
ipython/ipyparallel#851 · コメント 1 件 ·
ipython/ipyparallel の issue をすべて見る
似ている issue
-
bug customer-eng Durable Agents Inngest status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
ai_reviewed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ydb-platform/ydb#53838 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NovaSky-AI/SkyRL#2263 ·
-
ShuffleManagerRegistry.register recursion guard is inverted, permits GlutenShuffleManager subclasses オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100