dpgaspar commented on code in PR #21627:
URL: https://github.com/apache/superset/pull/21627#discussion_r983262341


##########
superset/reports/commands/exceptions.py:
##########
@@ -163,10 +165,12 @@ class 
ReportScheduleExecuteUnexpectedError(CommandException):
 
 
 class ReportSchedulePreviousWorkingError(CommandException):
+    status = 429

Review Comment:
   I don't think this will ever generate an HTTP response, this is only used on 
`execute.py` that always run on the workers



##########
superset/reports/commands/exceptions.py:
##########
@@ -163,10 +165,12 @@ class 
ReportScheduleExecuteUnexpectedError(CommandException):
 
 
 class ReportSchedulePreviousWorkingError(CommandException):
+    status = 429
     message = _("Report Schedule is still working, refusing to re-compute.")
 
 
 class ReportScheduleWorkingTimeoutError(CommandException):
+    status = 408

Review Comment:
   same here, please recheck



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to