def _is_long_running_process(command):
    """
    Try to determine if the process should be long-running or not
    """
    is_long_running_process = False
    if 'runserver' in command.name or 'runserver' in command.execute:
        is_long_running_process = True
    if command.long_running is not None:
        is_long_running_process = command.long_running
    return is_long_running_process
