Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from cvat.apps.engine.log import slogger
from cvat.settings.base import CVAT_URL, CVAT_EXCHANGE_URL

def notify_jobflow(db_jobs, db_task):
def notify_cvat_exchange(db_jobs, db_task):
logger = slogger.task[db_task.id]
try:
payouts = []
Expand Down
4 changes: 2 additions & 2 deletions cvat/apps/engine/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.dispatch import receiver
from cvat.apps.authentication.models import User

from cvat.apps.engine.notify_jobflow import notify_jobflow
from cvat.apps.engine.notify_cvat_exchange import notify_cvat_exchange

from .models import (
Data,
Expand All @@ -30,7 +30,7 @@ def update_task_status(instance, **kwargs):

if status != db_task.status:
if status == StatusChoice.COMPLETED and not db_task.is_exchange_notified:
notify_jobflow(db_jobs, db_task)
notify_cvat_exchange(db_jobs, db_task)
db_task.status = status
db_task.save()

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ services:
CVAT_REDIS_HOST: 'cvat_redis'
CVAT_POSTGRES_HOST: 'cvat_db'
ADAPTIVE_AUTO_ANNOTATION: 'false'
CVAT_EXCHANGE_URL: 'http://human-exchange-cvat:5001'
volumes:
- cvat_data:/home/django/data
- cvat_keys:/home/django/keys
Expand Down