# Path: mrq/version.py
# VERSION = "0.9.10"
# 
# Path: mrq/utils.py
# def get_local_ip():
#     """ Returns the local IP. Can be overwritten in the config with --local-ip so don't call
#     this function directly, instead get the current value from the config """
#     import socket
#     try:
#         return socket.gethostbyname(socket.gethostname())
#     except:  # pylint: disable=bare-except
#         return "127.0.0.1"


from future.builtins import str
from .version import VERSION
from .utils import get_local_ip
import argparse
import os
import sys
import re
import psutil
import atexit
import logging
        import cProfile, pstats
        action='store',
        default="memory_traces",
        help='Directory where to output .pngs with object graphs')

    parser.add_argument(
        '--profile',
        action='store_true',
        default=False,
        help='Run profiling on the whole worker')

    parser.add_argument(
        '--mongodb_jobs', '--mongodb',
        action='store',
        default="mongodb://127.0.0.1:27017/mrq",
        help='MongoDB URI for the jobs, scheduled_jobs & workers database')

    parser.add_argument(
        '--mongodb_logs',
        action='store',
        default="1",
        help='MongoDB URI for the logs database. ' +
             ' "0" will disable remote logs, "1" will use main MongoDB.')

    parser.add_argument(
        '--redis',
        action='store',
        default="redis://127.0.0.1:6379",
        help='Redis URI')

    parser.add_argument(

# Path: mrq/version.py
# VERSION = "0.9.10"
# 
# Path: mrq/utils.py
# def get_local_ip():
#     """ Returns the local IP. Can be overwritten in the config with --local-ip so don't call
#     this function directly, instead get the current value from the config """
#     import socket
#     try:
#         return socket.gethostbyname(socket.gethostname())
#     except:  # pylint: disable=bare-except
#         return "127.0.0.1"


# Path: mrq/config.py
from future.builtins import str
from .version import VERSION
from .utils import get_local_ip
import argparse
import os
import sys
import re
import psutil
import atexit
import logging
        import cProfile, pstats

        action='store',
        default="memory_traces",
        help='Directory where to output .pngs with object graphs')

    parser.add_argument(
        '--profile',
        action='store_true',
        default=False,
        help='Run profiling on the whole worker')

    parser.add_argument(
        '--mongodb_jobs', '--mongodb',
        action='store',
        default="mongodb://127.0.0.1:27017/mrq",
        help='MongoDB URI for the jobs, scheduled_jobs & workers database')

    parser.add_argument(
        '--mongodb_logs',
        action='store',
        default="1",
        help='MongoDB URI for the logs database. ' +
             ' "0" will disable remote logs, "1" will use main MongoDB.')

    parser.add_argument(
        '--redis',
        action='store',
        default="redis://127.0.0.1:6379",
        help='Redis URI')

    parser.add_argument(

        '--redis_prefix',