(sender, instance, created, **kwargs)
| 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") |
| 211 | def 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 | |
| 220 | class ProcessingNodeUserObjectPermission(UserObjectPermissionBase): |
| 221 | content_object = models.ForeignKey(ProcessingNode, on_delete=models.CASCADE) |
nothing calls this directly
no test coverage detected