Skip to content

Instantly share code, notes, and snippets.

View pbertera's full-sized avatar
🕳️

Pietro Bertera pbertera

🕳️
View GitHub Profile
@pbertera
pbertera / bottlequeue.py
Last active October 11, 2018 09:24 — forked from fspot/bottlequeue.py
Example app using bottle and multiprocessing for queuing long jobs and using several workers.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Example app using bottle and multiprocessing for queuing long jobs
and using several workers.
"""
from multiprocessing import Process, Queue, cpu_count
from bottle import Bottle, run
# coding=utf-8
import datetime
import sys
import time
import threading
import traceback
import SocketServer
from dnslib import *