const metadata = {
  queue: "shipping-carriers-status-poller",
  id: "shipping-carriers:status-poller",
  concurrency: 2
};
async function handle(job, ctx) {
  const service = ctx.resolve("shippingCarrierService");
  for (const shipmentId of job.payload.shipmentIds) {
    await service.refreshTracking({
      providerKey: job.payload.providerKey,
      shipmentId,
      organizationId: job.payload.scope.organizationId,
      tenantId: job.payload.scope.tenantId
    });
  }
}
export {
  handle as default,
  metadata
};
//# sourceMappingURL=status-poller.js.map
