This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Loop code is always running ingestion for images thrice #828
Closed
Description
openedon Jul 29, 2022
Description
The code to rerun ingestion for images if it fails, added in #802 is broken. It's running the image ingestion three times in what seems to be a Bash code bug.
Log
curl -X POST -H 'Content-Type: application/json' -d '{"model": "image", "action": "INGEST_UPSTREAM", "index_suffix": "init"}' 'http://localhost:8001/task'
{"message": "Successfully scheduled task", "task_id": "338b9145cc5b4049b6e7de6a4400a422", "status_check": "http://localhost:8001/task/338b9145cc5b4049b6e7de6a4400a422"}Waiting for index image-init to be ready...
./load_sample_data.sh: line 116: [0: command not found
curl -X POST -H 'Content-Type: application/json' -d '{"model": "image", "action": "INGEST_UPSTREAM", "index_suffix": "init"}' 'http://localhost:8001/task'
{"message": "Successfully scheduled task", "task_id": "043e83ff31d6480cadb106671a8175de", "status_check": "http://localhost:8001/task/043e83ff31d6480cadb106671a8175de"}./load_sample_data.sh: line 116: [0: command not found
curl -X POST -H 'Content-Type: application/json' -d '{"model": "image", "action": "INGEST_UPSTREAM", "index_suffix": "init"}' 'http://localhost:8001/task'
{"message": "Successfully scheduled task", "task_id": "e7874b5ca5d74e52bd6b9fb306b9dc88", "status_check": "http://localhost:8001/task/e7874b5ca5d74e52bd6b9fb306b9dc88"}./load_sample_data.sh: line 116: [0: command not found
Additional context
It might be a good idea to replace the Bash script with Python as it's generally a much friendly language to write scripts in. It might help reduce the occurrence of bugs.
Resolution
- 🙋 I would be interested in resolving this bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment