Skip to content

Commit

Permalink
bugfix, sync if changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixNazarov committed Aug 22, 2024
1 parent 264ef13 commit c6727e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions server/promptadmin_server/api/job/unit_test_job.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import asyncio

from promptadmin_server.api.service.prompt_unit_test_service import PromptUnitTestService
from promptadmin_server.commons.dto import ViewParamsBuilder, ViewParamsFilter
from promptadmin_server.commons.fastapi.background_task import BackgroundTask
from promptadmin_server.data.entity.sync_data import SyncData
from promptadmin_server.data.service.mapping_entity_service import MappingEntityService
from promptadmin_server.data.service.sync_data_service import SyncDataService

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ async def process_sync_data_name(
if len(mapping_entity_disable) > 0:
return
unit_test = await self.unit_test_service.find_by_sync_data_name(sync_data.id, name)
if unit_test and unit_test.test_status != 'wait':
return
if unit_test is None:
unit_test = UnitTest(
sync_data_id=sync_data.id,
Expand Down

0 comments on commit c6727e4

Please sign in to comment.