Skip to content

Commit

Permalink
Merge pull request #1110 from nickgrippin/irs-retry
Browse files Browse the repository at this point in the history
IRS Fix
  • Loading branch information
jmarin authored Aug 18, 2017
2 parents 083c5e5 + de9add6 commit c71447c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class HmdaFileValidator(submissionId: SubmissionId) extends HmdaPersistentActor

val supervisor = system.actorSelection("/user/supervisor")
val fHmdaFiling = (supervisor ? FindHmdaFiling(submissionId.period)).mapTo[ActorRef]
val statRef = for {
def statRef = for {
manager <- (supervisor ? FindProcessingActor(SubmissionManager.name, submissionId)).mapTo[ActorRef]
stat <- (manager ? GetActorRef(SubmissionLarStats.name)).mapTo[ActorRef]
} yield stat
Expand Down Expand Up @@ -256,9 +256,6 @@ class HmdaFileValidator(submissionId: SubmissionId) extends HmdaPersistentActor

case CompleteValidation(replyTo, originalSender) =>
if (state.readyToSign) {
for {
stat <- statRef
} yield stat ! PersistIrs
log.debug(s"Validation completed for $submissionId")
replyTo ! ValidationCompleted(originalSender)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class SubmissionLarStats(submissionId: SubmissionId) extends HmdaPersistentActor
q075Ratio,
q076Ratio
)
self ! PersistIrs
validationStats ! msg
}

Expand Down

0 comments on commit c71447c

Please sign in to comment.