question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Find jobs by data

See original GitHub issue

Hello. I know that getJob will not return a repeatable job. but is there any possibility to get all jobs that have specific data?

Here is an example. I would like to get all jobs that have transactionId=‘jk591k123na’

queue.add('generateAddresses', {transactionId: 'jk591k123na'}, {
    jobId: 'jk591k123na',
    repeat: { every: 10 * 60 * 1000 }
  });

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
cubeghostcommented, Jan 4, 2022

could also be useful to find/remove jobs by name- that way if I know I have a specific thing I want to index on (like transactionId) which is too dynamic to have separate queues for, I could still do something like:

const queue = new Queue('myJob');
queue.add(`job:${transactionId}`);

// elsewhere, like a user-initiated cancel
queue.removeJobByName(`job:${transactionId}`);

(in my use case it’d be tricky to keep track of job ids, since jobs are calling an external api and creating new jobs based on the pagination data returned, which and it’s not predictable how many pages there will be)

1reaction
ccolliecommented, Nov 18, 2021

@roggervalf thanks. I think I have an elegant way of dealing with this as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataJobs.com: Analytics Jobs, Hadoop Jobs, DBA Jobs, Data ...
Job board for everything big data - data scientists, DBAs, Hadoop technology, analytics, data analysts. We match rarefied talent with top companies.
Read more >
Jobseeker or Worker : U.S. Bureau of Labor Statistics
If you are looking to enter the job market, change jobs, or find career ... charts cover a variety of topics and feature...
Read more >
Data Analytics Job Boards
AI-jobs.net: lists freelance positions, part-time and full-time jobs, and internships exclusively in AI and Big Data ; Analytic Talent: national database of jobs...
Read more >
17+ Best Data Job Boards (Data Science, Data Analysis, ML ...
Looking for jobs in data science, data analysis, machine learning, artificial intelligence, etc.? Here are the best data job boards to know!
Read more >
Data Analyst Jobs | Monster.com
Check out Data Analyst jobs available today on Monster. Monster is your source for jobs & career opportunities.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found