Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def worker_id(service):
    process_created = datetime.datetime.fromtimestamp(os.path.getmtime('/proc/self'))
    return '{}-{}-{}-{}'.format(
            service,
            socket.gethostname(),
            process_created.strftime('%y%m%d.%H%M%S'),
            os.getpid())
        


src/a/m/amqpservices-0.5.2/amqpservices/__init__.py   amqpservices(Download)
from .base import config, LOCALHOST_CONNECTION, log
from .client import Client
from .server import Server, worker_id
from .serializers.json import JSONSerializer, JSONDispatcher, expose, JSONCallerProxy, \
    json_server, json_methods_server, json_proxy