Skip to content

Commit

Permalink
Added celery task to clear database sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuastegmaier committed Nov 2, 2023
1 parent 2d5639e commit 44e839e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions concordia/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,3 +939,9 @@ def fix_storage_images(campaign_slug=None, asset_start_id=None):
logger.info("Storage image downloaded for %s (%s)", asset, asset.id)
logger.debug("Storage image checked for %s (%s)", asset, asset.id)
logger.debug("%s / %s (%s%%)", count, full_count, str(count / full_count * 100))


@celery_app.task(ignore_result=True)
def clear_sessions():
# This clears expired Django sessions in the database
call_command("clearsessions")

0 comments on commit 44e839e

Please sign in to comment.