use of com.bakdata.conquery.models.messages.namespaces.specific.RemoveImportJob in project conquery by bakdata.
the class AdminDatasetProcessor method deleteImport.
/**
* Deletes an import.
*/
public synchronized void deleteImport(Import imp) {
final Namespace namespace = datasetRegistry.get(imp.getTable().getDataset().getId());
namespace.getStorage().removeImport(imp.getId());
namespace.sendToAll(new RemoveImportJob(imp));
// Remove bucket assignments for consistency report
namespace.removeBucketAssignmentsForImportFormWorkers(imp);
}
Aggregations