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

Add a query criteria to retrieve all executing jobs #4470

Open
prajwolbhandari1 opened this issue Jul 2, 2024 · 4 comments
Open

Add a query criteria to retrieve all executing jobs #4470

prajwolbhandari1 opened this issue Jul 2, 2024 · 4 comments
Assignees
Labels
type:feature Issues that add a new user feature to the project.

Comments

@prajwolbhandari1
Copy link
Contributor

User Story (Required on creation)

In one of our use cases we need to get the currently executing jobs. As far as I can tell, it's not available through the job apis. We need to add a query criteria may be as "executing" to query all jobs that are currently executing.

Functional Requirements (Required before implementation)

Add a query criteria to retrieve all executing jobs.

Technical Requirements (Required before implementation)

Add a "executing" query criteria similar to "executable" over here https://docs.camunda.org/manual/7.18/reference/rest/job/get-query/

@prajwolbhandari1 prajwolbhandari1 added the type:feature Issues that add a new user feature to the project. label Jul 2, 2024
@venetrius
Copy link
Member

Hi @prajwolbhandari1 ,

We have understood your request and will now decide how we continue with your idea.

Cheers,

Gergely

@venetrius venetrius self-assigned this Jul 5, 2024
@prajwolbhandari1
Copy link
Contributor Author

prajwolbhandari1 commented Jul 8, 2024

@venetrius Is it ok if I work on it and open a PR?

I am thinking about something like this in the query for 'executing' query parameter.

select * from act_ru_job where LOCK_EXP_TIME_ is not null and suspension_state_=1 and LOCK_EXP_TIME_ > currenttime

What do you think?

@prajwolbhandari1
Copy link
Contributor Author

@venetrius i have implemented this. PR is coming shortly.

@prajwolbhandari1
Copy link
Contributor Author

@venetrius just opened a PR. Can you please take a look at it? #4494

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

2 participants