File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
BackgroundJob/ContextChat Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,9 @@ protected function run($argument): void {
7171
7272 foreach ($ mailboxes as $ mailbox ) {
7373 try {
74- if ($ this ->taskService ->findByMailboxId ($ mailbox ->getId ())) {
75- continue ;
76- }
77- } catch (DoesNotExistException |MultipleObjectsReturnedException |Exception $ e ) {
78- $ this ->logger ->debug ('Could not find tasks for mailbox < ' . $ mailbox ->getId () . '> ' );
79- continue ;
80- }
81- try {
74+ $ this ->taskService ->findByMailboxId ($ mailbox ->getId ());
8275 $ this ->taskService ->updateOrCreate ($ mailbox ->getId (), 0 );
83- } catch (MultipleObjectsReturnedException |Exception $ e ) {
76+ } catch (DoesNotExistException | MultipleObjectsReturnedException |Exception $ e ) {
8477 $ this ->logger ->warning ('Could not schedule context chat indexing tasks for mailbox < ' . $ mailbox ->getId () . '> ' );
8578 }
8679 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function findNext(): Task {
3232 }
3333
3434 /**
35- * @param string $mailboxId
35+ * @param int $mailboxId
3636 * @return Task
3737 * @throws DoesNotExistException
3838 * @throws Exception
You can’t perform that action at this time.
0 commit comments