dax/dax_tools_utils.py
def is_dax_upload_running(flagfile):
    """
    Check if dax_upload is not already running on the station

    :return: True if dax_upload already running, False otherwise.
    """
    if os.path.exists(flagfile):
        LOGGER.warn('Upload already running.')
        return True
    else:
        f_obj = open(flagfile, 'w')
        today = datetime.now()
        datestr = "Date: %s%s%s_%s:%s:%s" % (str(today.year),
                                             str(today.month),
                                             str(today.day),
                                             str(today.hour),
                                             str(today.minute),
                                             str(today.second))
        f_obj.write(datestr + '\n')
        f_obj.close()
        LOGGER.debug('Flagfile created: %s with date: %s\n'
                     % (flagfile, datestr))
        return False

    Check if dax_upload is not already running on the station

    :return: True if dax_upload already running, False otherwise.
    
Check if dax_upload is not already running on the station
Check if dax_upload is not already running on the station
def is_dax_upload_running(flagfile):
    if os.path.exists(flagfile):
        LOGGER.warn('Upload already running.')
        return True
    else:
        f_obj = open(flagfile, 'w')
        today = datetime.now()
        datestr = "Date: %s%s%s_%s:%s:%s" % (str(today.year),
                                             str(today.month),
                                             str(today.day),
                                             str(today.hour),
                                             str(today.minute),
                                             str(today.second))
        f_obj.write(datestr + '\n')
        f_obj.close()
        LOGGER.debug('Flagfile created: %s with date: %s\n'
                     % (flagfile, datestr))
        return False
def is_dax_upload_running ( flagfile ) : if os . path . exists ( flagfile ) : LOGGER . warn ( 'Upload already running.' ) return True else : f_obj = open ( flagfile , 'w' ) today = datetime . now ( ) datestr = "Date: %s%s%s_%s:%s:%s" % ( str ( today . year ) , str ( today . month ) , str ( today . day ) , str ( today . hour ) , str ( today . minute ) , str ( today . second ) ) f_obj . write ( datestr + '\n' ) f_obj . close ( ) LOGGER . debug ( 'Flagfile created: %s with date: %s\n' % ( flagfile , datestr ) ) return False
Check if dax_upload is not already running on the station
Check if dax_upload is not already running on the station
"""
    Check if dax_upload is not already running on the station

    :return: True if dax_upload already running, False otherwise.
    """
True if dax_upload already running, False otherwise.
True if dax_upload already running False otherwise .
flagfile