Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

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

@Nickk4

Description

@Nickk4

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 });
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions