◆ checkForUpdate() [1/2]
AutoUpdateStatus fiftyone.pipeline.engines.services.DataUpdateService.checkForUpdate | ( | OnPremiseAspectEngine<? extends AspectData, ? extends AspectPropertyMetaData > | engine, |
String | dataFileIdentifier | ||
) |
Check for an available download of a new data file, or a local data file newer than the one currently in use.
If either is the case, then the engine is updated with the new data. The engine does not need to be registered with the service for this method to be used.
- Parameters
-
- engine - AspectEngine to try updating
- dataFileIdentifier - the identifier of the data file to check for. If the engine has only one data file then this parameter is ignored
- Returns
- AutoUpdateStatus#AUTO_UPDATE_SUCCESS if the data file was successfully updated
Implemented in fiftyone.pipeline.engines.services.DataUpdateServiceDefault.