Skip to content

Compute gets stuck #9

@antolinos

Description

@antolinos

I've launched the POST /compute but it seems to get stuck as the progressPercent has not changed for the last few hours:

requested "2022-05-19T07:54:43.405306"
started "2022-05-19T07:54:48.430000"
ended null
progressPercent 0.5
progressDescription "Computing weights"
inProgress true

I restarted the docker and launch the compute but nothing changed. the script that I ran is:

import sys
import time
import logging
import argparse
import requests

#########################
# LOGGING CONFIGURATION
##########################
LOG = logging.getLogger('Scoring')
LOG.setLevel(logging.INFO)

handler = logging.StreamHandler(sys.stdout)
handler.setLevel(logging.DEBUG)
formatter = logging.Formatter(
    '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
LOG.addHandler(handler)


LOG.info("Start")
##########################
# INPUT PARAMETERS
##########################
parser = argparse.ArgumentParser()
requiredNamed = parser.add_argument_group('required arguments')

requiredNamed.add_argument(
    '--scoring', help='Scoring server. Example: http://dau-dm-01:9000', required=True)


args = parser.parse_args()
pss_base_url = args.scoring 
pss_compute_url = '/'.join([pss_base_url,'compute'])

LOG.info(f"Computing")
requests.post(pss_compute_url,  timeout=0.1)
LOG.info(f"Computing launched")

Any idea about what should I try? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions