1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 17:43:53 +00:00

user premium validation job

This commit is contained in:
Kyle Spearrin
2017-08-22 15:27:29 -04:00
parent 8e5d541be6
commit 0ea87d1c1c
16 changed files with 162 additions and 56 deletions

View File

@@ -56,8 +56,8 @@ namespace Bit.Jobs
case "validate-organizations":
await _licensingService.ValidateOrganizationsAsync();
break;
case "validate-users":
// TODO
case "validate-users-premium":
await _licensingService.ValidateUsersAsync();
break;
case "refresh-licenses":
// TODO

View File

@@ -1,4 +1,5 @@
0 * * * * root dotnet /jobs/Jobs.dll -d /jobs -j alive >> /var/log/cron.log 2>&1
0 */6 * * * root dotnet /jobs/Jobs.dll -d /jobs -j validate-organizations >> /var/log/cron.log 2>&1
30 */12 * * * root dotnet /jobs/Jobs.dll -d /jobs -j validate-users-premium >> /var/log/cron.log 2>&1
# An empty line is required at the end of this file for a valid cron file.