Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Batch2 framework with GATE_WAITING state #5818

Closed
TynerGjs opened this issue Apr 3, 2024 · 0 comments · Fixed by #5851
Closed

Update Batch2 framework with GATE_WAITING state #5818

TynerGjs opened this issue Apr 3, 2024 · 0 comments · Fixed by #5851
Assignees

Comments

@TynerGjs
Copy link
Contributor

TynerGjs commented Apr 3, 2024

Description of Enhancement

  • update the batch2 framework to allow handling better handling for gated jobs
  • update documentation as required

Acceptance Criteria

  • gated job execution uses new state

Solution Design

  • Add new work chunk state GATE_WAITING - create gated chunks in this state (see ca.uhn.fhir.batch2.coordinator.JobDataSink#accept) -> update it to set it to GATE_WAITING instead of QUEUED; update the docs
  • Change gated step advance in triggerGatedExecutions to transactionally update gated chunks from GATE_WAITING -> READY in a single transaction (update state and update job); database update statement for all chunks in GATE_WAITING for the given job id -> READY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant