Example #1
0
def start_generic_services():
    start_service("LogService")
    start_service("ResourceService")
    start_service("Checker")
    start_service("Worker")
    start_server("AdminWebServer")
    start_ranking_web_server()
Example #2
0
def start_generic_services():
    start_service("LogService")
    start_service("ResourceService")
    start_service("Checker")
    start_service("Worker")
    start_server("AdminWebServer")
    start_ranking_web_server()
Example #3
0
def start_generic_services():
    start_service("LogService")
    start_service("ResourceService")
    start_service("Checker")
    start_service("Worker")
    start_server("AdminWebServer")
    # Just to verify it starts successfully.
    start_ranking_web_server()
Example #4
0
def start_generic_services():
    start_service("LogService")
    start_service("ResourceService")
    start_service("Checker")
    start_service("Worker")
    start_server("AdminWebServer")
    # Just to verify it starts successfully.
    start_ranking_web_server()
Example #5
0
 def start_generic_services(workers=1):
     start_service("LogService")
     start_service("ResourceService")
     start_service("Checker")
     for shard in xrange(workers):
         start_service("Worker", shard)
     start_service("ScoringService")
     start_server("AdminWebServer")
     # Just to verify it starts successfully.
     start_ranking_web_server()
Example #6
0
 def start_generic_services(workers=1):
     start_service("LogService")
     start_service("ResourceService")
     start_service("Checker")
     for shard in xrange(workers):
         start_service("Worker", shard)
     start_service("ScoringService")
     start_server("AdminWebServer")
     # Just to verify it starts successfully.
     start_ranking_web_server()
Example #7
0
def create_contest():
    info("Creating contest.")
    start_time = datetime.datetime.now()
    end_time = start_time + datetime.timedelta(1, 0, 0)
    contest_id = add_contest(
        name="testcontest1",
        description="A test contest #1.",
        start=start_time.strftime("%d/%m/%Y %H:%M:%S"),
        end=end_time.strftime("%d/%m/%Y %H:%M:%S"),
        token_initial="100",
        #token_max="",
        #token_total="",
        #token_min_interval="",
        #token_gen_time="",
        #token_gen_number="",
        )

    start_service("ScoringService", contest=contest_id)
    start_service("EvaluationService", contest=contest_id)
    start_server("ContestWebServer", contest=contest_id)

    return contest_id
Example #8
0
def create_contest():
    info("Creating contest.")
    start_time = datetime.datetime.utcnow()
    stop_time = start_time + datetime.timedelta(1, 0, 0)
    contest_id = add_contest(
        name="testcontest1",
        description="A test contest #1.",
        start=start_time.strftime("%Y-%m-%d %H:%M:%S.%f"),
        stop=stop_time.strftime("%Y-%m-%d %H:%M:%S.%f"),
        timezone=get_system_timezone(),
        token_initial="100",
        token_max="100",
        token_total="100",
        token_min_interval="0",
        token_gen_time="0",
        token_gen_number="0",
        )

    start_service("ScoringService", contest=contest_id)
    start_service("EvaluationService", contest=contest_id)
    start_server("ContestWebServer", contest=contest_id)

    return contest_id
Example #9
0
def create_contest():
    info("Creating contest.")
    start_time = datetime.datetime.utcnow()
    stop_time = start_time + datetime.timedelta(1, 0, 0)
    contest_id = add_contest(
        name="testcontest1",
        description="A test contest #1.",
        start=start_time.strftime("%Y-%m-%d %H:%M:%S.%f"),
        stop=stop_time.strftime("%Y-%m-%d %H:%M:%S.%f"),
        timezone=get_system_timezone(),
        token_initial="100",
        token_max="100",
        token_total="100",
        token_min_interval="0",
        token_gen_time="0",
        token_gen_number="0",
    )

    start_service("ScoringService", contest=contest_id)
    start_service("EvaluationService", contest=contest_id)
    start_server("ContestWebServer", contest=contest_id)

    return contest_id
Example #10
0
def start_contest(contest_id):
    start_service("EvaluationService", contest=contest_id)
    start_server("ContestWebServer", contest=contest_id)
    # Just to verify it starts successfully.
    start_service("ProxyService", contest=contest_id)
Example #11
0
def start_contest(contest_id):
    start_service("EvaluationService", contest=contest_id)
    start_server("ContestWebServer", contest=contest_id)
    # Just to verify it starts successfully.
    start_service("ProxyService", contest=contest_id)
Example #12
0
 def start_cws(self):
     start_server("ContestWebServer", contest=self.contest_id)
Example #13
0
def start_contest(contest_id):
    start_service("ScoringService", contest=contest_id)
    start_service("EvaluationService", contest=contest_id)
    start_server("ContestWebServer", contest=contest_id)
Example #14
0
 def start_cws(self):
     start_server("ContestWebServer", contest=self.contest_id)
Example #15
0
def start_contest(contest_id):
    start_service("ScoringService", contest=contest_id)
    start_service("EvaluationService", contest=contest_id)
    start_server("ContestWebServer", contest=contest_id)