Skip to content

Instantly share code, notes, and snippets.

View elgartoinf's full-sized avatar
🏠
Working from home

Gabriel Mejia elgartoinf

🏠
Working from home
View GitHub Profile
sudo yum-config-manager --enable "Red Hat Enterprise Linux Server 7 Extra(RPMs)"
sudo yum install docker -y
@elgartoinf
elgartoinf / start-celery-for-dev.py
Created September 29, 2017 20:36 — forked from chenjianjx/start-celery-for-dev.py
A python script which starts celery worker and auto reload it when any code change happens.
'''
A python script which starts celery worker and auto reload it when any code change happens.
I did this because Celery worker's "--autoreload" option seems not working for a lot of people.
'''
import time
from watchdog.observers import Observer ##pip install watchdog
from watchdog.events import PatternMatchingEventHandler
import psutil ##pip install psutil
import os