Skip to content

Commit

Permalink
Merge pull request #1303 from longguikeji/feature-fix-check-extension…
Browse files Browse the repository at this point in the history
…s-expired

fix: 🐛 修复检查插件租赁定时任务
  • Loading branch information
luolu-lg authored Sep 22, 2022
2 parents e664471 + bc338b7 commit 8bde94d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arkid/common/check_arstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ def check_extensions_expired():
'kwargs': json.dumps({}),
},
)
PeriodicTask.objects.update_or_create(
name='check_extension_expired',
defaults={
'crontab': schedule,
'task': 'arkid.core.tasks.check_extensions_rent_expired',
'args': json.dumps([]),
'kwargs': json.dumps({}),
},
)
except OperationalError:
pass
except Exception as e:
Expand Down

0 comments on commit 8bde94d

Please sign in to comment.