Skip to content

Instantly share code, notes, and snippets.

View rredkovich's full-sized avatar

rredkovich

  • Shoeboxsolutions AB
  • Bratislava, Slovakia
View GitHub Profile
#! /bin/bash
#
# backup_redmine.sh
# modified by [email protected]
# from https://gist.github.com/ronanguilloux/6497272
#
# Distributed under terms of the MIT license.
# /var/backups/redmine should exist
# $REDMINE_HOME/backups should also exist
@rredkovich
rredkovich / mongo_queue.py
Created May 27, 2018 14:33
python tornado queue task consuming in parallel
import time
import logging
from tornado import queues, gen, ioloop
from tornado.options import parse_command_line
QUEUE_SIZE = 4
CONCURRENT = 2