agronholm / agronholm/apscheduler

Could it possible to add a new listener?

Đang mở
#498 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
7.6k
Fork
783
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
5

Mô tả

**Usage:**
I'm Using apscheduler with django-apscheduler's DjangoJobStore, got error "MySQL server has gone away" when the job's interval is very long.
here's package's version:
```
django-apscheduler==0.5.2
shellescape==3.8.1
```
I have read previous issues about my problem, and i came out an thought, could it possible to add a new listener named
"EVENT_JOBSTORE_GET_ERROR", which is used to notify user when "getting job from job store" stage raised an exception.
Then user add a listener to handle this error. In my case, i would recreate an conncetion to mysql and retry.

please, tell me it this gonna work?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.