-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
121 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import logging | ||
|
||
from core.service_signals import ServiceSignalBindType | ||
from core.signals import bind_service_signal | ||
from individual.services import GroupIndividualService, IndividualService | ||
|
||
from tasks_management.services import on_task_complete_service_handler | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def bind_service_signals(): | ||
bind_service_signal( | ||
'task_service.complete_task', | ||
on_task_complete_service_handler(GroupIndividualService), | ||
bind_type=ServiceSignalBindType.AFTER | ||
) | ||
bind_service_signal( | ||
'task_service.complete_task', | ||
on_task_complete_service_handler(IndividualService), | ||
bind_type=ServiceSignalBindType.AFTER | ||
) |