Closed lapaniku closed 4 years ago
Thanks for bringing this to our attention. After investigating this issue, we believe that this bug could be caused by some non-deterministic behaviour during the API Gateway route setup. We are continuing to investigate this issue. In the meantime, you could try to deploy your BatchAPI by explicitly disabling API Gateway:
- name: api:
kind: BatchAPI
networking:
api_gateway: none # the default is public
Version
cli version: 0.20.0
Description
I've started a job with 1 worker and I can successfully get its status:
$ cortex get imagesearch-batch 69bfbc4539100651 --env aws
Though when I tried to request :
curl -X DELETE https://hv5geqzdo9.execute-api.us-east-1.amazonaws.com/imagesearch-batch/69bfbc4539100651
The result is:{"message":"Not Found"}
Which is a bit strange as was able to delete jobs with several workers before.
Configuration
Steps to reproduce
Expected behavior
The corresponding job should be successfully stopped.
Actual behavior
Job continues to run after the DELETE request.
Stack traces
No issues with the job running:
2020-10-22 08:39:23.978178:cortex:pid-140:INFO:loading the predictor from predictor.py 2020-10-22 08:39:27.785006:cortex:pid-140:INFO:polling for batches... 2020-10-22 08:39:27.864598:cortex:pid-140:INFO:processing batch 4b320cba-a335-40f6-ba50-e301e96f4859 2020-10-22 08:49:37.230117:cortex:pid-140:INFO:processing batch 0a3df022-6aa0-4d77-acdc-d2c11f7229c1 2020-10-22 08:59:27.638303:cortex:pid-140:INFO:processing batch c573396b-00d6-4055-a870-9c74e669e904 2020-10-22 09:09:57.368275:cortex:pid-140:INFO:processing batch ab729014-459f-4604-8c3a-582cfd5fe089 2020-10-22 09:20:05.450738:cortex:pid-140:INFO:processing batch ef24b433-661c-4507-86f0-449dc01ac701 2020-10-22 09:30:08.732410:cortex:pid-140:INFO:processing batch ea7dbff5-f3e9-4db6-93e0-1dd5e890e2d6 2020-10-22 09:41:09.451085:cortex:pid-140:INFO:processing batch f926de1a-500a-45f2-9253-7c886fcd448f
Suggested solution
Might be connected with using only 1 worker as I was able to successfully delete jobs with 5 workers before.