【发布时间】:2021-02-13 08:27:15
【问题描述】:
我希望能够在不使用 bash 脚本的情况下在后台启动大量作业并继续在同一个内核上工作。这可能吗?我对架构更改持开放态度,但我的库的最终用户可能不是很老练。
[1] create_batch = my_batch.create(**batch_input)
[2] run_batch = start_async_process(
# real python... not bash
sleep(9999)
#my_batch.execute_jobs()
)
[3] print("i can still to do stuff while that runs!")
[4] my_batch.get_status()
-
[]代表 ipython 单元。 - JupyterLab 中的 python 3.7.6
【问题讨论】: