CreatePackJobTask.CreatePackJob

// Job ID: #682c1823af648e081cf3dc5d
using OI.Service.HangfireTask.CreatePackJob;

var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
    "657f8abb117b5203884cd4d5",
    "659e064716f53f0fecb70c67",
    "SarahRichardson",
    new { "664ea0fad222d90720dbd3ed", "67916ac1af648e08a410d7db", "6791802ea7ab950ac0d5ac88" },
    FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[],\"ExportOrders\":true,\"FoildIds\":[\"664ea0fad222d90720dbd3ed\",\"67916ac1af648e08a410d7db\",\"6791802ea7ab950ac0d5ac88\"],\"GenerateBarcode\":true,\"IsCollatedCopies\":false,\"IsCytotoxic\":false,\"IsPrintAll\":false,\"IsPRN\":false,\"IsS4N\":false,\"IsS8\":false,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"NumberOfCopies\":0,\"NumberOfWeek\":2,\"PartWeekPack\":7,\"PackStartDate\":\"2025-05-28T02:00:00Z\",\"PrintDate\":\"2025-05-20T02:00:00Z\",\"CurrentUserId\":\"659e064716f53f0fecb70c67\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2025-07-15T02:00:00Z\",\"DoseTimeOption\":{\"DoseTimeStart\":0,\"IsBreakfast\":true,\"IsLunch\":true,\"IsDinner\":true,\"IsBedTime\":true}}"));
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

5/20/2025 5:50:41 AM (+821ms) Failed

An exception occurred during performance of the job.

MongoDB.Driver.MongoCommandException

Command insert failed: Retryable write with txnNumber 27 is prohibited on session 535ac82e-cabc-45fa-b786-6fad3cfe78c5 - FSHyjt2QwtwL0v/vAU6nxMursmHwjsUnlZRthlRPXfw= - - because a newer retryable write with txnNumber 28 has already started on this session..

MongoDB.Driver.MongoCommandException: Command insert failed: Retryable write with txnNumber 27 is prohibited on session 535ac82e-cabc-45fa-b786-6fad3cfe78c5 - FSHyjt2QwtwL0v/vAU6nxMursmHwjsUnlZRthlRPXfw= -  -  because a newer retryable write with txnNumber 28 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 339
--- 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 141

+13.303s Processing

Server:
ip-0a000671:2056
Worker:
ab049795

+6ms Enqueued

Queue:
queue1

5/20/2025 5:50:27 AM Created