Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adding Person Owner Rebuild

...

There are 5 jobs in sync service:

  • PersonOwnerRebuildJob: Calls a stored procedure that truncates and repopulates the 'PersonOwner' table based on an ordered list of ProgrammeMembership criteria
  • PersonPlacementEmployingBodyTrustJob: Truncates and repopulates the list of connections between trainees and the employingBody trust. It writes data into the database table tcs.PersonTrust.
  • PersonPlacementTrainingBodyTrustJob: Repopulates the list of connections between trainees and the trainingBody trust. It also writes into tcs.PersonTrust, and is triggered after PersonPlacementEmployingBodyTrustJob, so the data wouldn't be truncated at first.
  • PostEmployingBodyTrustJob: Truncates and repopulates the list of connections between posts and the employingBody trust. It writes data into the database tcs.PostTrust.
  • PostTrainingBodyTrustJob: Repopulates the list of connections between posts and the trainingBody trust. It also writes into tcs.PostTrust, and is triggered after PostTrainingBodyTrustJob, so the data wouldn't be truncated at first.
  • PersonElasticSearchSyncJob: Truncates index of persons in ElasticSearch and creates a new index of persons. Then repopulates the documents of PersonViews from TCS-Service and saves these documents in ElasticSearch. 

...

The processing flows of PersonPlacementTrainingBodyTrustJob, PostEmployingBodyTrustJob, PostTrainingBodyTrustJob are similar to PersonPlacementEmployingBodyTrustJob, so there's no need to repeat the diagram.


Time scheduled

00:05 PersonOwnerRebuildJob

00:09 PersonPlacementEmployingBodyTrustJob

...

Failed/Out-of-date JobManaged Bean NameMethod NameThings that need to be done after this has been started
PersonOwnerRebuildJobPersonOwnerRebuildJobpersonOwnerRebuildJobnone

PersonPlacementEmployingBodyTrustJob

PersonPlacementEmployingBodyJobdoPersonPlacementEmployingBodyFullSync

Re-run PersonPlacementTrainingBodyTrustJob

  and PersonElasticSearchSyncJob

PersonPlacementTrainingBodyTrustJobPersonPlacementTrainingBodyTrustJobPersonPlacementTrainingBodyFullSyncPersonElasticSearchSyncJob (assuming only this failed)
PostEmployingBodyTrustJobPostEmployingBodyTrustJobPostEmployingBodyTrustFullSyncRe-run PostTrainingBodyTrustJob
PostTrainingBodyTrustJobPostTrainingBodyTrustJobPostTrainingBodyTrustFullSyncnone (assuming only this failed)
PersonElasticSearchSyncJobPersonElasticSearchJobpersonElasticSearchSyncnone

...