fix(perms): 完善检查资产授权过期的celery task

This commit is contained in:
xinwen
2020-09-29 11:03:31 +08:00
committed by 老广
parent 5558e854de
commit 2a86c3a376
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ def check_asset_permission_expired():
date_expired__gt=start, date_expired__lt=end
).distinct().values_list('id', flat=True)
logger.info(f'>>> checking {start} to {end} have {ids} expired')
dispatch_process_expired_asset_permission.delay(ids)
dispatch_process_expired_asset_permission.delay(list(ids))
@shared_task(queue='node_tree')