mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 21:51:35 +08:00
FIX: loop detection works as expected and does not need logging (#31686)
Logging creates impression that something is not working while everything is working as expected.
This commit is contained in:

committed by
GitHub

parent
e87bfad23b
commit
4bb1e0d113
@ -130,12 +130,7 @@ module DiscourseAutomation
|
||||
|
||||
def trigger!(context = {})
|
||||
if enabled
|
||||
if active_id = DiscourseAutomation.get_active_automation
|
||||
Rails.logger.warn(<<~TEXT.strip)
|
||||
[automation] potential automations infinite loop detected: skipping automation #{self.id} because automation #{active_id} is still executing.")
|
||||
TEXT
|
||||
return
|
||||
end
|
||||
return if active_id = DiscourseAutomation.get_active_automation
|
||||
|
||||
begin
|
||||
DiscourseAutomation.set_active_automation(self.id)
|
||||
|
Reference in New Issue
Block a user