Project

Profile

Help

Task #2232

closed

Create Django post_save signal for Task model

Added by pcreech about 8 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

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

Also available in: Atom PDF