Loading ccserver/handlers.py +6 −3 Original line number Diff line number Diff line Loading @@ -626,15 +626,18 @@ class CliHandler(OnlineCCHandler): return errs.get_dict() @listed def jobs(self, conn, show_done=True, show_running=True): def jobs(self, conn, query, show_done=True, show_running=True): ''' Return all jobs. :param show_done: show done jobs :param show_running: show running jobs ''' props = ('id', 'status', 'created', 'ended', 'duration', 'done', 'author') if query: raise NotImplementedError('Tql in jobs is not yet supported.') props = ('id', 'author', 'created', 'ended', 'duration', 'done', 'title', 'status') jobs = [] for job in self._server.jobs.iterjobs(show_done, show_running): Loading Loading
ccserver/handlers.py +6 −3 Original line number Diff line number Diff line Loading @@ -626,15 +626,18 @@ class CliHandler(OnlineCCHandler): return errs.get_dict() @listed def jobs(self, conn, show_done=True, show_running=True): def jobs(self, conn, query, show_done=True, show_running=True): ''' Return all jobs. :param show_done: show done jobs :param show_running: show running jobs ''' props = ('id', 'status', 'created', 'ended', 'duration', 'done', 'author') if query: raise NotImplementedError('Tql in jobs is not yet supported.') props = ('id', 'author', 'created', 'ended', 'duration', 'done', 'title', 'status') jobs = [] for job in self._server.jobs.iterjobs(show_done, show_running): Loading