Skip to content

Commit

Permalink
Set timestamp on self reference ensuring it propagates through decora…
Browse files Browse the repository at this point in the history
…tors
  • Loading branch information
dalecannon committed Jan 28, 2025
1 parent 1d727ed commit e5b3311
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions publishing/models/packaged_workbasket.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,11 @@ def begin_processing(self):
multiple instances it's necessary for this method to perform a save()
operation upon successful transitions.
"""
instance = PackagedWorkBasket.objects.select_for_update(nowait=True).get(
PackagedWorkBasket.objects.select_for_update(nowait=True).get(
pk=self.pk,
)
instance.processing_started_at = make_aware(datetime.now())
instance.save()
self.processing_started_at = make_aware(datetime.now())
self.save()

@create_envelope_on_completed_processing
@save_after
Expand Down

0 comments on commit e5b3311

Please sign in to comment.