Skip to content

Is it possible to set job data for recurring jobs that are schedules? #35

@ssmirr

Description

@ssmirr

Is it possible to job data for a recurring job that is being scheduled? It doesn't seem to be supported from a quick look I had at the source code but wanted to double check.

example from README.md:

// Run a job a after 1 second
queue.add(
  "send-email",
  { to: "user@example.com", subject: "Hello" },
  { delay: 1000 }
);

// Schedule a recurring job
queue.schedule("daily-report", { cron: "0 0 * * *" });

PS. awesome project by the way! 🚀

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