lykmapipo / kue-scheduler

A job scheduler utility for kue, backed by redis and built for node.js
246 stars 47 forks source link

Retrieving jobExpiryKey and jobDataKey when scheduling a job #26

Closed hfreire closed 8 years ago

hfreire commented 8 years ago

Hi!

Quick question: How is one supposed to retrieve jobExpiryKey and jobDataKey when scheduling a job?

Long question: According to the documentation in order to remove a job one could use the remove API with a criteria that contains the jobExpiryKey, jobDataKey or the unique identifier. But how is one supposed to retrieve those keys (jobExpiryKey, jobDataKey) if he intends to remove a scheduled job later on?

lykmapipo commented 8 years ago

@hfreire

You may just pass a job instance and will figure out.