Project

Profile

Help

Task #2232

closed

Create Django post_save signal for Task model

Added by pcreech over 7 years ago. Updated about 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
Actions #1

Updated by fdobrovo over 7 years ago

  • Blocked by Task #2300: Add serializer for the task models. added
Actions #2

Updated by fdobrovo over 7 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

Actions #3

Updated by bmbouter over 7 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#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

Both of these statements are correct.

Actions #4

Updated by dalley about 6 years ago

  • Blocked by deleted (Task #2300: Add serializer for the task models.)
Actions #5

Updated by dalley about 6 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #6

Updated by daviddavis about 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #7

Updated by bmbouter about 5 years ago

  • Tags deleted (Pulp 3)

Also available in: Atom PDF