MCPcopy Create free account
hub / github.com/WebODM/WebODM / auto_update_node_info

Function auto_update_node_info

nodeodm/models.py:211–218  ·  view source on GitHub ↗
(sender, instance, created, **kwargs)

Source from the content-addressed store, hash-verified

209# First time a processing node is created, automatically try to update
210@receiver(signals.post_save, sender=ProcessingNode, dispatch_uid="update_processing_node_info")
211def auto_update_node_info(sender, instance, created, **kwargs):
212 if created:
213 try:
214 instance.update_node_info()
215 except exceptions.GenericError:
216 pass
217 except Exception as e:
218 logger.warning("auto_update_node_info: " + str(e))
219
220class ProcessingNodeUserObjectPermission(UserObjectPermissionBase):
221 content_object = models.ForeignKey(ProcessingNode, on_delete=models.CASCADE)

Callers

nothing calls this directly

Calls 1

update_node_infoMethod · 0.80

Tested by

no test coverage detected