SourcesAPINotOkStatus: unexpected status 404 using account 6089719 at http://sources-api.sources-ci.svc:8080//internal/v...
If an authentication has already been deleted by the time we process the kafka message, we will raise an exception. Instead let's log at an info level on 404 errors and not create an account.
Consider doing the same for the endpoint lookup; on 404 log an error and stop account creation.
Sentry Issue: CLOUDIGRADE-CELERY-40
SourcesAPINotOkStatus: unexpected status 404 using account 6089719 at http://sources-api.sources-ci.svc:8080//internal/v1.0/authentications/16910/
File "celery/app/base.py", line 487, in run
return task._orig_run(*args, **kwargs)
File "api/tasks.py", line 113, in create_from_sources_kafka_message
account_number, authentication_id
File "util/insights.py", line 67, in get_sources_authentication
return make_sources_call(account_number, url, headers, params)
File "util/insights.py", line 115, in make_sources_call
raise SourcesAPINotOkStatus(message)
Edited by werwty