Skip to content

calling done with error doesnt fail the job on Arena #95

@sharonass

Description

@sharonass

I've setup a bee-queue with arena and In my local machine when I call

queue.process(async function (job, done) {

    console.log(`Processing job ${job.id}`);
    job.reportProgress(5);
    let res = await my_service.execute(job);
    if(res.status) {
      //report job progress
      job.reportProgress(100);
      return done(null, res.msg);
    } else {
      done(new Error(res.msg));
      
    }
  });    

I see on my flow that the done(new Error(res.msg)); is being called and I also debugged the done function and I see it rejects the promise. however when I look at the job on Arena I see it in success section

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