signals.py
Functions that are executed upon receiving an application signal.
delete_orphans_for_run(sender, instance, using, **kwargs)
¶
Delete any Image and SkyRegion objects that would be orphaned by deleting the given Run. Expects to recieve the arguments sent by the pre_delete signal. See https://docs.djangoproject.com/en/3.1/ref/signals/#pre-delete.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sender | Type[Run] | Model class that sent the signal. | required |
instance | Run | Model instance to be deleted. | required |
using | str | Database alias. | required |
Returns:
Type | Description |
---|---|
None | None |
Source code in vast_pipeline/signals.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|