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 support for getJobState method in Queue class #1532

Closed
lok52 opened this issue Nov 10, 2022 · 2 comments
Closed

Add support for getJobState method in Queue class #1532

lok52 opened this issue Nov 10, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@lok52
Copy link

lok52 commented Nov 10, 2022

Feature request:
Now, the only way to get job's state is by calling job.getState(). And if I already know job id, but don't have the actual job instance in a function, it would be convenient to call queue.getJobState(jobId) without retrieving the job via queue.getJob(jobId) first.

@manast manast added the enhancement New feature or request label Nov 11, 2022
@manast
Copy link
Contributor

manast commented Nov 11, 2022

Ok, it would be a bit faster as you do not need to fetch the job first. Maybe an enhancement for a rainy day :)

github-actions bot pushed a commit that referenced this issue Dec 20, 2022
# [3.5.0](v3.4.2...v3.5.0) (2022-12-20)

### Bug Fixes

* **job:** fetch parent before job moves to complete ([#1580](#1580)) ([6a6c0dc](6a6c0dc))
* **sandbox:** throw error when no exported function ([#1588](#1588)) fixes [#1587](#1587) ([c031891](c031891))

### Features

* **queue:** add getJobState method ([#1593](#1593)) ref [#1532](#1532) ([b741e84](b741e84))
@roggervalf
Copy link
Collaborator

hi @LyzeOfKiel, it should be available since version 3.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants