Skip to content

Implement queueAndRun utility #2

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nathanclevenger
Copy link
Member

Summary

  • add a returnJobs flag to runJobs args to opt into returning processed job data
  • forward new returnJob option through localAPI runByID
  • simplify queueAndRun by using runByID result instead of a db query

Testing

  • npx eslint packages/payload/src/queues/localAPI.ts packages/payload/src/queues/operations/runJobs/index.ts

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

Successfully merging this pull request may close these issues.

1 participant