Skip to content

Commit

Permalink
Remove unnecessary cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
juyrjola committed Aug 23, 2023
1 parent 177d204 commit af56cb8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions trips_ingest/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ def ingest_events():
def cleanup():
logger.info('Cleaning up')

yesterday = timezone.now() - timedelta(days=1)
# Delete locations that user has marked for deletion
ret = Location.objects.filter(deleted_at__isnull=False).filter(deleted_at__lte=yesterday).delete()
logger.info('Locations cleaned: %s' % str(ret))
# Delete expired leg locations
ret = LegLocation.objects.expired(buffer_hours=48).delete()
logger.info('Leg locations cleaned: %s' % str(ret))
Expand Down

0 comments on commit af56cb8

Please sign in to comment.