camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.13k stars 1.56k forks source link

Job lock history #2651

Open ThorbenLindhauer opened 2 years ago

ThorbenLindhauer commented 2 years ago

This issue was imported from JIRA:

Field Value
JIRA Link CAM-14578
Reporter 5VWqRZE
What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.
Has restricted visibility comments true

User Story (Required on creation):

As a user, I can gain insights into how long jobs were waiting before being processed.

Functional Requirements (Required before implementation):

The job log contains information about when a job was locked and if a lock expired.

Technical Requirements (Required before implementation):

Limitations of Scope (Optional):

Hints (optional):

Original Description

In the history tables for external tasks and jobs, it would be nice to be able to see entries for when an external task or job was locked. Currently, we can only see when these are created, completed, failed, deleted.

This is useful because it would allow us to report on how long a task or external job was waiting separately from its actual processing time.

Related forum thread: https://forum.camunda.org/t/external-tasks-history/6277

Links:

ThorbenLindhauer commented 2 years ago

This comment was imported from JIRA and written by user @mboskamp


Hi 5VWqRZE,

Thanks for raising this feature request. Like the related CAM-13947 this request also makes sense from the product perspective. I will discuss the topic with the team and we will keep you updated. In the meantime, if you like to contribute this feature in a pull request we would be happy to assist you with feedback on the implementation.

Best, Miklas

ThorbenLindhauer commented 2 years ago

This comment was imported from JIRA and written by user @tmetzke


Hi 5VWqRZE,

I agree with Miklas here that your proposal is valid in the scope of the product. We will add this to the backlog for our next planning sessions. However, this does not yet mean that we will work on this in the near future.

If you would like to contribute code to speed this up, let us know and we can help you with getting started with a pull request.

Best, Tobias

ThorbenLindhauer commented 2 years ago

This comment was imported from JIRA and written by user @toco-cam


Hi all,

I hope I did not cause too much confusion. As the original request contained Job and External Task Lock, I cloned it to have a ticket for Job Lock and External Task Lock separately. I should have commented on my approach. 

5VWqRZE please excuse the generated spam.

Have a nice weekend.

Tobias (Product Management)