Changeset 9656


Ignore:
Timestamp:
Sep 4, 2011, 12:57:34 PM (13 years ago)
Author:
rick
Message:

Some hosts takes up to 10 seconds to generate all the configs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/management/commands/import_nodes.py

    r9597 r9656  
    2424logger.setLevel(logging.INFO)
    2525
     26INPUT_TIMEOUT = 10
     27
    2628
    2729class Command(BaseCommand):
     
    4042
    4143    filename = args[0]
    42     timeout = 2
    4344    if filename == '-':
    44       rlist, _, _ = select([sys.stdin], [], [], timeout)
     45      logger.info("Waiting %s seconds for input to arive", INPUT_TIMEOUT)
     46      rlist, _, _ = select([sys.stdin], [], [], INPUT_TIMEOUT)
    4547      if rlist:
    4648        fh = sys.stdin
Note: See TracChangeset for help on using the changeset viewer.