mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 00:44:48 +00:00
fix(perms): 完善检查资产授权过期的celery task
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user