This commit is contained in:
2023-01-20 02:18:52 +00:00
parent 3e4a47fd48
commit cfb17f4807
3 changed files with 16 additions and 5 deletions

View File

@@ -204,7 +204,6 @@ namespace Sockeye.Biz
//system lock (no license) is a complete deal breaker for continuation beyond here //system lock (no license) is a complete deal breaker for continuation beyond here
if (serverState.IsSystemLocked) return false; if (serverState.IsSystemLocked) return false;
return true; return true;
} }
@@ -264,6 +263,10 @@ namespace Sockeye.Biz
await SockBotSubscriptionServerHealthChecks.DoWorkAsync(); await SockBotSubscriptionServerHealthChecks.DoWorkAsync();
if (!KeepOnWorking()) return; if (!KeepOnWorking()) return;
//SOCKBOT - PROCESS PURCHASES
await SockBotProcessPurchases.DoWorkAsync();
if (!KeepOnWorking()) return;
//JOB SWEEPER //JOB SWEEPER
await CoreJobSweeper.DoWorkAsync(); await CoreJobSweeper.DoWorkAsync();
if (!KeepOnWorking()) return; if (!KeepOnWorking()) return;

View File

@@ -12,6 +12,8 @@ namespace Sockeye.Models
public long Id { get; set; } public long Id { get; set; }
public uint Concurrency { get; set; } public uint Concurrency { get; set; }
public long? CustomerId { get; set; } public long? CustomerId { get; set; }
public long? LicenseId { get; set; }//when licensed will be set to this license id
THINKING ON THIS ONE public bool Licenseable { get; set; } = false;//indicates it is ready for the licensing job to license this purchase (if has no license id)
[NotMapped] [NotMapped]
public string CustomerViz { get; set; } public string CustomerViz { get; set; }
[Required] [Required]
@@ -33,7 +35,7 @@ namespace Sockeye.Models
public bool RenewNoticeSent { get; set; } = false; public bool RenewNoticeSent { get; set; } = false;
public int Quantity { get; set; } = 1; public int Quantity { get; set; } = 1;
public string VendorData { get; set; } public string VendorData { get; set; }
public bool Processed { get; set; } = false;//indicates it was processed, false means it should be processed public bool Processed { get; set; } = false;//indicates it was processed from raw vendor data into proper values, false means it should be processed
public string Wiki { get; set; } public string Wiki { get; set; }
public List<string> Tags { get; set; } public List<string> Tags { get; set; }
//workaround for notification //workaround for notification

View File

@@ -5,7 +5,13 @@ TODO:
- create customer if necessary from purchase notification or add to existing - create customer if necessary from purchase notification or add to existing
- if v7 needs to account for there being a delay sometimes in order completeness - if v7 needs to account for there being a delay sometimes in order completeness
maybe just keep adding to the order and refreshing maybe just keep adding to the order and refreshing
- JOB: make a license from purchases but not active ready to send / in waiting only for approval - JOB: make a license from purchases but not active ready to send / in waiting only for approval
- if v7 needs to account for there being a delay sometimes in order completeness
maybe just keep adding to the order and refreshing
IDEA: if v7 don't process into a license until the newest purchase for the same customer are at least XX minutes old
they almost seem to be done manually by mycommerce but I'd say there's no more than 15 minutes max for all to come in
!!! maybe look at email history of previous orders and see what the max delay is between order recepts !!!!
- JOB: "SOCKBOT" virtual staff member, - JOB: "SOCKBOT" virtual staff member,