Skip to content

Releases: anchan828/nest-cloud-run-queue

v3.0.0

09 Jul 04:15
Compare
Choose a tag to compare

What's Changed

@anchan828/nest-cloud-run-queue-worker

Execute worker/processor manually

You can execute worker/processor manually.

@Controller("/worker")
class WorkerController {
  constructor(private readonly service: QueueWorkerService) {}

  @Post()
  public async execute(@Body() body: QueueWorkerReceivedMessage): Promise<void> {
    const workers = await this.service.getWorkers(body.message);

    for (const worker of workers) {
      const processors = worker.getProcessors();

      for (const processor of processors) {
        const result = await processor.execute();

        if (result.success) {
          console.log("Success");
        } else {
          console.log("Failed:" + result.error.message);
        }
      }
    }
  }
}

Breaking changes

  • Remove Global Events: Removed __unhandled_queue_worker and __all_queue_workers
  • Remove config.extraConfig: Removed preProcessor and postProcessor

Full Changelog: v2.4.1...v3.0.0

v2.1.0

20 Feb 13:59
Compare
Choose a tag to compare

fix: use useFactory instead of useValue (#1713)

v1.0.3

20 Apr 14:26
Compare
Choose a tag to compare

Cloud Tasks is supported from this version. Tasks can be used instead of Cloud Pub/Sub.

Most interfaces and class names have been changed. It is easier to find the name of the change by searching on the compare page.
v0.4.41...v1.0.3

v0.4.0

08 Jul 14:14
Compare
Choose a tag to compare

Updated to nestjs v8