<?php

/**

 * Check Import Job Status

 */



define('MIGRATION_ACCESS', true);

require_once 'queue_manager.php';



$jobId = $_GET['job'] ?? '';

$queue = new ImportQueue();

$status = $queue->getJobStatus($jobId);



header('Content-Type: application/json');

echo json_encode($status);

?>