CreatePackJobTask.CreatePackJob

// Job ID: #679ac3f5af648e0a6056544c
using OI.Service.HangfireTask.CreatePackJob;

var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
    "65aef69c96096600c08a4537",
    "65bad32aa5ab8f03e04f3279",
    "Ray.Mik",
    new { "65cc1ed416f53f112c288e2f", "65cc29d996096603c8c63394", "65d53c9816f54004909a55ea", "65d53e29a5ab8f0e8cd8ae5e", "65cc29e316f53f112c3589ab", "65c2b5f216f53f05c89b3655", "65c5a94f9609660b64a3cce7", "65d55db716f5400490bb3540", "6642ddd2a5ab8f08b4c486a5", "67007954d222d903844301c4", "6709b930a7ab9505c02b5acf", "67103bad08efed03ac58a027" },
    FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[],\"ExportOrders\":true,\"FoildIds\":[\"65cc1ed416f53f112c288e2f\",\"65cc29d996096603c8c63394\",\"65d53c9816f54004909a55ea\",\"65d53e29a5ab8f0e8cd8ae5e\",\"65cc29e316f53f112c3589ab\",\"65c2b5f216f53f05c89b3655\",\"65c5a94f9609660b64a3cce7\",\"65d55db716f5400490bb3540\",\"6642ddd2a5ab8f08b4c486a5\",\"67007954d222d903844301c4\",\"6709b930a7ab9505c02b5acf\",\"67103bad08efed03ac58a027\"],\"GenerateBarcode\":true,\"IsCollatedCopies\":false,\"IsCytotoxic\":false,\"IsPrintAll\":false,\"IsPRN\":false,\"IsS4N\":false,\"IsS8\":false,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"NumberOfCopies\":0,\"NumberOfWeek\":4,\"PartWeekPack\":7,\"PackStartDate\":\"2025-02-17T02:00:00Z\",\"PrintDate\":\"2025-01-30T02:00:00Z\",\"CurrentUserId\":\"65bad32aa5ab8f03e04f3279\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2025-03-27T02:00:00Z\",\"DoseTimeOption\":{\"DoseTimeStart\":0,\"IsBreakfast\":true,\"IsLunch\":true,\"IsDinner\":true,\"IsBedTime\":true}}"));
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

1/30/2025 12:12:43 AM (+3.069s) Failed

An exception occurred during performance of the job.

MongoDB.Driver.MongoCommandException

Command insert failed: Retryable write with txnNumber 4641 is prohibited on session 8d46eead-0082-4f84-a088-4b11dea22bfc - FSHyjt2QwtwL0v/vAU6nxMursmHwjsUnlZRthlRPXfw= - - because a newer retryable write with txnNumber 4642 has already started on this session..

MongoDB.Driver.MongoCommandException: Command insert failed: Retryable write with txnNumber 4641 is prohibited on session 8d46eead-0082-4f84-a088-4b11dea22bfc - FSHyjt2QwtwL0v/vAU6nxMursmHwjsUnlZRthlRPXfw= -  -  because a newer retryable write with txnNumber 4642 has already started on this session..
   at OI.Service.HangfireTask.CreatePackJob.CreatePackJobTask.<GeneratePackJob>d__38.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\CreatePackJob\CreatePackJobTask.cs:line 338
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at OI.Service.HangfireTask.CreatePackJob.CreatePackJobTask.<CreatePackJob>d__37.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\CreatePackJob\CreatePackJobTask.cs:line 140

+3.445s Processing

Server:
ip-0a0008a9:3516
Worker:
fa17fdc6

+4ms Enqueued

Queue:
queue1

1/30/2025 12:12:37 AM Created