Ejemplo n.º 1
0
def get_liveness(scheduler):
    # Ensure the scheduler is alive
    logger.warning("Liveness probe - trying retrieve stored jobs from database using scheduler")
    # Ensure that we are able to publish messages
    logger.warning("Liveness probe - trying to schedule the livenessFlow")
    handlers.FlowScheduling(job_id=None).execute('livenessFlow', flow_arguments=[None])
    logger.warning("Liveness probe - finished")
    return {}, 200
Ejemplo n.º 2
0
def post_run_victims_check():
    """Run Victims CVE check."""
    logger.info('Scheduling Victims CVE Check...')
    handlers.FlowScheduling(job_id=None).execute('victimsFlow',
                                                 flow_arguments=[None])
    return {}, 201
Ejemplo n.º 3
0
def get_liveness(scheduler):
    """Get job service liveness."""
    handlers.FlowScheduling(job_id=None).execute('livenessFlow',
                                                 flow_arguments=[None])
    return {}, 200