Task #2232
closedCreate Django post_save signal for Task model
0%
Description
The 2.y Task system sends an amqp signal during the model's save() message.
This functionality needs to be moved to a Django post_save signal for pulp 3
The method signature/attribute for the signal handler:
@receiver(post_save, sender=Task)
my_handler(sender, instance, created)
Django documenation:
https://docs.djangoproject.com/en/1.8/topics/signals/#connecting-to-signals-sent-by-specific-senders
https://docs.djangoproject.com/en/1.8/ref/signals/#post-save
Updated by fdobrovo about 8 years ago
- Blocked by Task #2300: Add serializer for the task models. added
Updated by fdobrovo about 8 years ago
As far as I understand it first we need to have serialisation of models:
https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/async/emit.py#L29
And also ported the function wchic send amqp signal:
https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/async/emit.py#L10-L41
Updated by bmbouter about 8 years ago
fdobrovo wrote:
As far as I understand it first we need to have serialisation of models:
https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/async/emit.py#L29And also ported the function wchic send amqp signal:
https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/async/emit.py#L10-L41
Both of these statements are correct.
Updated by dalley over 6 years ago
- Blocked by deleted (Task #2300: Add serializer for the task models.)