Skip to content

Commit

Permalink
style: replace auto generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
n-kakuko committed Oct 17, 2024
1 parent 784aad4 commit b058228
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions backend/oqtopus_cloud/user/routers/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,7 @@ def cancel_sampling_task(
db.add(result)
db.commit()
elif task.status in ["RUNNING"]:
logger.info(
"task is in RUNNING state, so it will be marked as CANCELLING"
)
logger.info("task is in RUNNING state, so it will be marked as CANCELLING")
task.status = "CANCELLING"
db.commit()
return SuccessResponse(message="cancel request accepted")
Expand Down Expand Up @@ -894,9 +892,7 @@ def cancel_estimation_task(
db.add(result)
db.commit()
elif task.status in ["RUNNING"]:
logger.info(
"task is in RUNNING state, so it will be marked as CANCELLING"
)
logger.info("task is in RUNNING state, so it will be marked as CANCELLING")
task.status = "CANCELLING"
db.commit()
return SuccessResponse(message="cancell request accepted")
Expand Down

0 comments on commit b058228

Please sign in to comment.