예제 #1
0
    def run_async(self):
        """
        Starts application in non-blocking mode.

        Arguments:
        None

        Exceptions:
        None
        """
        self.thread = Parallel(target=self.__run)
        self.thread.daemon = True
        self.thread.start()
예제 #2
0
    def run_async(self):
        """
        Starts application in non-blocking mode.

        Arguments:
        None

        Exceptions:
        None
        """
        self.thread = Parallel(target=self._run,
                               name="Thread_frame_{0}".format(self._appname))
        self.thread.daemon = True
        self.thread.start()
예제 #3
0
        help='Starts the server with thes slack/github watchdog')
    parser.add_argument(
        '-t',
        '--timeout',
        type=int,
        default=0,
        help=
        'Timeout in seconds for the server to consider a client disconnected.')
    parser.add_argument(
        '-c',
        '--clearempty',
        action='store_true',
        default=False,
        help='Clears the dataframes when all simulations leave.')
    args = parser.parse_args()
    global fs
    fs = FrameServer(args.port, args.debug, args.external, args.timeout,
                     args.clearempty)
    p = Parallel(target=fs.run, args=(args.profile, ))
    p.daemon = True
    p.start()

    if args.watchdog:
        try:
            from slack_watchdog import start_watchdog
            start_watchdog(fs)
        except:
            print "error starting watchdog."
            raise
    SpacetimeConsole().cmdloop()
예제 #4
0
 def run(self):
     p = Parallel(target=self.__run)
     p.daemon = True
     p.start()
     p.join()
예제 #5
0
 def run_async(self):
     p = Parallel(target=self.__run)
     p.daemon = True
     p.start()