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

Can done be used to save a custom item to the jobs collection? #61

Open
Nickk4 opened this issue Nov 15, 2024 · 0 comments
Open

Can done be used to save a custom item to the jobs collection? #61

Nickk4 opened this issue Nov 15, 2024 · 0 comments

Comments

@Nickk4
Copy link

Nickk4 commented Nov 15, 2024

In the code example below I try to save a custom property called myId to the jobs collection. This does not work, no error is thrown but also no custom property is saved. How can I save a custom property?

pulse.define('process-job', async (job, done) => {
  const { email, token } = job.attrs.data;

  try {
    const result = await processMyJob(email, token);
    console.log('myId:', result);
    done(undefined, { status: 'Completed', myId: result });
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant