Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Make job submission asynchronous

Đang mở
#470 9 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
distributed-systems, hpc

Hướng nghiên cứu

Đọc ghi chú và phần mã submission xung quanh trong dask_jobqueue/core.py, tại khoảng dòng 305, sau đó tái hiện hành vi blocking bằng cách đặt một script sleep 20 giây trước executable submit thực sự. So sánh hành vi command submission giữa backend condor và kịch bản Jupyter event-loop đã nêu. Hoàn tất khi submission không còn chặn scheduler hoặc UI trong lúc gọi executable bị trì hoãn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I have noticed that execution of commands (e.g., condor_submit for the condor backend) appear to be synchronous. In fact, there's a small note about this in the code itself:

https://github.com/dask/dask-jobqueue/blob/master/dask_jobqueue/core.py#L305

We've started to notice this particularly at very busy batch schedulers. For example, when dask labextension (https://github.com/dask/dask-labextension) is used in a Jupyter notebook, it will spawn the Dask scheduler inside the jupyter hub process (I think I got this terminology right?) and not the notebook. Because it's in the hub itself, if dask jobqueue is non-responsive then the entire UI freezes (as no I/O is done in the event loop). This triggers user complaints of "Jupyter stops working when we use Dask".

The impact of the blocking behavior can be easily seen by replacing the submit executable with a shell script that does a sleep 20 before invoking the real submit executable.

Ngôn ngữ chính
Python
Star
256
Fork
149
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dask/dask-jobqueue

Tất cả issue của dask/dask-jobqueue

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.