SimonErm/react-native-job-queue

Retry/Remove failed jobs

SimonErm opened this issue · 2 comments

Currently there is no convenient method to retry or remove failed jobs.

I am thinking of having Job class such as Queue class and Worker class.
Imagining the Job class should have:
Properties:

  • active
  • attempts
  • created
  • failed
  • id
  • metaData
  • payload
  • priority
  • timeout
  • workerName

Methods:

  • remove
  • retry
  • cancel

Good idea?

I don't think this would give us any benefits or am i wrong?
Furthermore i think the job is a kind of dto sine it's serialized and passed to the bridge.