mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
# pylint: disable=consider-using-transaction
|
||||
import dataclasses
|
||||
import logging
|
||||
import uuid
|
||||
@@ -127,6 +128,7 @@ def handle_query_error(
|
||||
|
||||
|
||||
def get_query_backoff_handler(details: dict[Any, Any]) -> None:
|
||||
print(details)
|
||||
query_id = details["kwargs"]["query_id"]
|
||||
logger.error(
|
||||
"Query with id `%s` could not be retrieved", str(query_id), exc_info=True
|
||||
|
||||
Reference in New Issue
Block a user