How to disable Detected KeyboardInterrupt
🐛 Bug

To Reproduce
Steps to reproduce the behavior:

I use pycharm
Enter F5 key or click pycharm debug

Epoch 1:  77%|███████▋  | 27/35 [00:12<00:03,  2.08it/s, loss=6.617, v_num=16, train_loss=5.91]/home/blake/anaconda3/envs/torch/lib/python3.7/site-packages/pytorch_lightning/utilities/distributed.py:25: UserWarning: Detected KeyboardInterrupt, attempting graceful shutdown...
  warnings.warn(*args, **kwargs)
Epoch 1:  77%|███████▋  | 27/35 [00:13<00:03,  2.06it/s, loss=6.617, v_num=16, train_loss=5.91]
See you again!

Code sample
    trainer = Trainer(logger=tb_logger,  
                      gpus=cfg.NUM_GPUS,  
                      max_epochs=cfg.SOLVER.MAX_STEPS,  
                      checkpoint_callback=checkpoint_callback,  
                      distributed_backend = 'dp',  
                      resume_from_checkpoint= None if cfg.MODEL.LANDMARK_DET.PRE_TRAIN_DIR == 'None' else cfg.MODEL.LANDMARK_DET.PRE_TRAIN_DIR,  
                      num_sanity_val_steps=0)  
    #start training  
    trainer.fit(train_model) 

Expected behavior

Environment

CUDA:
- GPU:
- GeForce GTX 1080
- GeForce GTX 1080
- available:         True
- version:           10.0
Packages:
- numpy:             1.18.1
- pyTorch_debug:     False
- pyTorch_version:   1.4.0+cu100
- pytorch-lightning: 0.8.4-dev
- tensorboard:       2.2.2
- tqdm:              4.46.1
System:
- OS:                Linux
- architecture:
- 64bit
-
- processor:         x86_64
- python:            3.7.7
- version:           #41~16.04.1-Ubuntu SMP Wed Oct 10 20:16:04 UTC 2018