Skip to content

Instantly share code, notes, and snippets.

View rredkovich's full-sized avatar

rredkovich

  • Shoeboxsolutions AB
  • Bratislava, Slovakia
View GitHub Profile
@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
#! /bin/bash
#
# backup_redmine.sh
# modified by redkovich@gmail.com
# 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