Skip to content

Commit

Permalink
chore: quality fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Sep 30, 2024
1 parent 21cb021 commit 6ee1813
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform_plugin_aspects/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def receive_course_enrollment_changed( # pylint: disable=unused-argument # pra
def on_user_profile_updated_txn(**kwargs):
"""
Handle user_profile saves in the middle of a transaction.
Handle saves in the middle of a transaction.
If this gets fired before the transaction commits, the task may try to
query an id that doesn't exist yet and throw an error. This should postpone
Expand Down Expand Up @@ -104,6 +105,7 @@ def on_user_profile_updated(instance):
def on_externalid_saved_txn(*args, **kwargs):
"""
Handle external_id saves in the middle of a transaction.
Handle saves in the middle of a transaction.
If this gets fired before the transaction commits, the task may try to
query an id that doesn't exist yet and throw an error. This should postpone
Expand Down Expand Up @@ -161,6 +163,7 @@ def on_user_retirement( # pylint: disable=unused-argument # pragma: no cover
def on_tag_saved_txn(*args, **kwargs):
"""
Handle external_id saves in the middle of a transaction.
Handle saves in the middle of a transaction.
If this gets fired before the transaction commits, the task may try to
query an id that doesn't exist yet and throw an error. This should postpone
Expand Down Expand Up @@ -198,6 +201,7 @@ def on_tag_saved( # pylint: disable=unused-argument # pragma: no cover
def on_taxonomy_saved_txn(*args, **kwargs):
"""
Handle external_id saves in the middle of a transaction.
Handle saves in the middle of a transaction.
If this gets fired before the transaction commits, the task may try to
query an id that doesn't exist yet and throw an error. This should postpone
Expand Down Expand Up @@ -235,6 +239,7 @@ def on_taxonomy_saved( # pylint: disable=unused-argument # pragma: no cover
def on_object_tag_saved_txn(*args, **kwargs):
"""
Handle external_id saves in the middle of a transaction.
Handle saves in the middle of a transaction.
If this gets fired before the transaction commits, the task may try to
query an id that doesn't exist yet and throw an error. This should postpone
Expand Down

0 comments on commit 6ee1813

Please sign in to comment.