Skip to content

Commit

Permalink
Removed extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed May 17, 2024
1 parent e7fc367 commit e272452
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions cvat/apps/events/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,6 @@ def handle_dataset_import(
handle_dataset_io(instance, "import", format_name=format_name, cloud_storage=cloud_storage)

def handle_rq_exception(rq_job, exc_type, exc_value, tb):
if isinstance(exc_type, SystemExit):
# rq process was killed intentionally by SIGTERM
# we do not need to log it
return False

oid = rq_job.meta.get("org_id", None)
oslug = rq_job.meta.get("org_slug", None)
pid = rq_job.meta.get("project_id", None)
Expand Down
2 changes: 1 addition & 1 deletion cvat/rqworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def handle_exception(self, *args, **kwargs):
if not is_stopped_export_job:
# we do not need to write exception here because the process was stopped intentionally
# moreover default code saves meta in and rewrites request datetime in meta with old value
super().handle_job_failure(*args, **kwargs)
super().handle_exception(*args, **kwargs)


if debug.is_debugging_enabled():
Expand Down

0 comments on commit e272452

Please sign in to comment.