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

Track affected process instances by batch (when invocationsPerBatchJob=1) #4198

Open
6 tasks
yanavasileva opened this issue Mar 22, 2024 · 0 comments
Open
6 tasks
Labels
type:feature Issues that add a new user feature to the project.

Comments

@yanavasileva
Copy link
Member

yanavasileva commented Mar 22, 2024

User Story (Required on creation)

As an Operations Engineer, I want to know the activity id and process id of an incident resulting of an error in a batch job

Functional Requirements (Required before implementation)

Batch configuration is available on demand for every newly created batch on Batches page in Cockpit.
Process instance id is available for running batches that has failed jobs.

Technical Requirements (Required before implementation)

  • Preserve the batch configuration in the byte array table
    • don't remove the process instance ids during batch execution job creation, but use an index (pointer) to iterate over them
    • don't delete the byte array, leave it for the History cleanup to pick it up
  • Set removal time for those byte arrays according to HTTL of the batch type
  • Expose a new private endpoint to fetch the batch configuration based on batchId
  • Configuration is preserved only for newly create batches, instruct users to wait for all their batches to complete before doing an upgrade.
  • In Cockpit, add a new button for the batch configuration
    • shows the complete configuration
    • add another button for downloading the configuration
    • add processInstanceId column in Failed jobs and Job log view for in progress batches

Limitations of Scope

  • Tracking the process instance id in failed jobs is available only for in progress batches. For completed batches previously failed job information is not available/displayed.
  • process instance id will not be populated for invocationsPerBatchJob!=1

Hints

Links

Breakdown

Tasks

  1. type:subtask
  2. scope:cockpit type:subtask
  3. scope:cockpit type:subtask
  4. scope:documentation type:subtask
  5. type:task

Dev2QA handover

  • Does this ticket need a QA test and the testing goals are not clear from the description? Add a Dev2QA handover comment
@yanavasileva yanavasileva added the type:feature Issues that add a new user feature to the project. label Mar 22, 2024
@yanavasileva yanavasileva changed the title In Cockpit, expose batch configuration for all batches In Cockpit, track back affected process instances by batch Mar 22, 2024
@yanavasileva yanavasileva changed the title In Cockpit, track back affected process instances by batch Track affected process instances by batch Mar 25, 2024
@yanavasileva yanavasileva changed the title Track affected process instances by batch Track affected process instances by batch (when invocationsPerBatchJob=1) Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature Issues that add a new user feature to the project.
Projects
None yet
Development

No branches or pull requests

1 participant