Automattic / Automattic/kue

search job by data

Open
#1,135 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

Hi,

What mechanisms kue provides me for searching a job by it's data?

My use-case comes from the RTB world, where ad campaign settings need to be visited daily - unless the advertiser pulled the campaign off.

So consider I have a delayed job per campaign, that once visited - it reschedules for the next interval.

But - when the advertiser pulls the camaign - I need to be able to abort it.

While I can on job-process time go to the advertizer db and see if the campaign is still active, I fancy a hook in which I can find the job and abort it in real time.

I'd appreciate any input.
If the functionality is there - great.
If it rolls to a feature-request - AND if we react fast - I'll be able to help as long as I'm working on this project.

Thanks,
O

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Start by reviewing Kue's existing job lookup and cancellation APIs, then determine how campaign data could be queried and what abort behavior is required; done means the requested search-and-abort workflow is clearly defined and supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, redis
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.