feat(server): turn off machine learning endpoint (#1361)

This commit is contained in:
Jason Rasmussen 2023-01-20 11:35:55 -05:00 committed by GitHub
parent a8cbda5f24
commit bdad18a572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 12 deletions

View file

@ -3,6 +3,7 @@
notificationController,
NotificationType
} from '$lib/components/shared-components/notification/notification';
import { handleError } from '$lib/utils/handle-error';
import { AllJobStatusResponseDto, api, JobCommand, JobId } from '@api';
import { onDestroy, onMount } from 'svelte';
import JobTile from './job-tile.svelte';
@ -95,13 +96,8 @@
type: NotificationType.Info
});
}
} catch (e) {
console.log('[ERROR] runMachineLearning', e);
notificationController.show({
message: `Error running machine learning job, check console for more detail`,
type: NotificationType.Error
});
} catch (error) {
handleError(error, `Error running machine learning job, check console for more detail`);
}
};