Changeset 3802562 for aiwend/trunk/src/WordPress/ChatModule.php
- Timestamp:
- 11/14/2026 10:49:34 PM (less than one hour ago)
- File:
-
- 1 edited
-
aiwend/trunk/src/WordPress/ChatModule.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aiwend/trunk/src/WordPress/ChatModule.php
r3787448 r3802562 13 13 final class ChatModule implements Module 14 14 { 15 private Plugin $plugin; 15 16 /** Background erasure of the conversations of an assistant that is being deleted (phase 111). */ 16 17 public const ERASE_ASSISTANT = 'chat.assistant_erase'; … … 19 20 public const RETENTION = 'chat.retention'; 20 21 21 public function __construct( privatePlugin $plugin)22 public function __construct(Plugin $plugin) 22 23 { 24 $this->plugin = $plugin; 23 25 } 24 26 … … 32 34 $plugin->queue->enqueue($siteId, self::ERASE_ASSISTANT, ['bot_id' => $botId], $key, 0, self::ERASE_ATTEMPTS); 33 35 return true; 34 } catch (\Aiwend\Queue\JobRejectedException ) {36 } catch (\Aiwend\Queue\JobRejectedException $exception) { 35 37 return false; 36 38 } … … 115 117 try { 116 118 $this->plugin->queue->enqueue($job->siteId, self::RETENTION, ['continuation' => true], 'chat.retention:more:' . $job->id, 0, self::ERASE_ATTEMPTS); 117 } catch (\Aiwend\Queue\JobRejectedException ) {119 } catch (\Aiwend\Queue\JobRejectedException $exception) { 118 120 // module switched off in the meantime: the next daily job resumes 119 121 }
Note:
See TracChangeset
for help on using the changeset viewer.