Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
celery-haystack-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
celery-haystack-ng
Commits
0f81e3d4
Verified
Commit
0f81e3d4
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Rename enqueue_tasks to enqueue_task again
parent
7f7cf9ce
No related branches found
Branches containing commit
Tags
1.0.3
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
celery_haystack/signals.py
+2
-2
2 additions, 2 deletions
celery_haystack/signals.py
celery_haystack/utils.py
+1
-1
1 addition, 1 deletion
celery_haystack/utils.py
with
3 additions
and
3 deletions
celery_haystack/signals.py
+
2
−
2
View file @
0f81e3d4
...
@@ -4,7 +4,7 @@ from haystack.signals import BaseSignalProcessor
...
@@ -4,7 +4,7 @@ from haystack.signals import BaseSignalProcessor
from
haystack.exceptions
import
NotHandled
from
haystack.exceptions
import
NotHandled
from
haystack.utils
import
get_identifier
from
haystack.utils
import
get_identifier
from
.utils
import
enqueue_task
s
from
.utils
import
enqueue_task
from
.indexes
import
CelerySearchIndex
from
.indexes
import
CelerySearchIndex
...
@@ -20,7 +20,7 @@ class CelerySignalProcessor(BaseSignalProcessor):
...
@@ -20,7 +20,7 @@ class CelerySignalProcessor(BaseSignalProcessor):
signals
.
post_save
.
disconnect
(
self
.
enqueue_save
)
signals
.
post_save
.
disconnect
(
self
.
enqueue_save
)
signals
.
post_delete
.
disconnect
(
self
.
enqueue_delete
)
signals
.
post_delete
.
disconnect
(
self
.
enqueue_delete
)
enqueue_task
s
(
self
.
_queue
)
enqueue_task
(
self
.
_queue
)
def
enqueue_save
(
self
,
sender
,
instance
,
**
kwargs
):
def
enqueue_save
(
self
,
sender
,
instance
,
**
kwargs
):
return
self
.
enqueue
(
'
update
'
,
instance
,
sender
,
**
kwargs
)
return
self
.
enqueue
(
'
update
'
,
instance
,
sender
,
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
celery_haystack/utils.py
+
1
−
1
View file @
0f81e3d4
...
@@ -24,7 +24,7 @@ def get_update_task(task_path=None):
...
@@ -24,7 +24,7 @@ def get_update_task(task_path=None):
return
task
return
task
def
enqueue_task
s
(
queue
,
**
kwargs
):
def
enqueue_task
(
queue
,
**
kwargs
):
"""
"""
Common utility for enqueing a task for the given action and
Common utility for enqueing a task for the given action and
model instance.
model instance.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment