mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
run on sqs
This commit is contained in:
parent
ff78ddc5a0
commit
1814c5988c
2 changed files with 10 additions and 12 deletions
2
.github/workflows/_build_image.yml
vendored
2
.github/workflows/_build_image.yml
vendored
|
|
@ -90,7 +90,7 @@ jobs:
|
|||
temp=$(eval echo "$line")
|
||||
BUILD_ARGS="$BUILD_ARGS --build-arg $temp"
|
||||
done <<< "${{ inputs.build_args }}"
|
||||
|
||||
|
||||
docker buildx build \
|
||||
--no-cache \
|
||||
--platform linux/amd64 \
|
||||
|
|
|
|||
|
|
@ -132,19 +132,17 @@ def send_to_address2uprn_queue(task_id: str, sub_task_id: str, s3_uri: str) -> s
|
|||
"s3_uri": s3_uri,
|
||||
}
|
||||
|
||||
# # Don't run on sqs yet
|
||||
# response = sqs_client.send_message(
|
||||
# QueueUrl=queue_url,
|
||||
# MessageBody=json.dumps(message_body),
|
||||
# )
|
||||
response = sqs_client.send_message(
|
||||
QueueUrl=queue_url,
|
||||
MessageBody=json.dumps(message_body),
|
||||
)
|
||||
|
||||
# logger.info(
|
||||
# f"Sent message to address2UPRN queue. "
|
||||
# f"Task: {task_id}, SubTask: {sub_task_id}, MessageId: {response['MessageId']}"
|
||||
# )
|
||||
logger.info(
|
||||
f"Sent message to address2UPRN queue. "
|
||||
f"Task: {task_id}, SubTask: {sub_task_id}, MessageId: {response['MessageId']}"
|
||||
)
|
||||
|
||||
# return response["MessageId"]
|
||||
return str(uuid4())
|
||||
return response["MessageId"]
|
||||
|
||||
|
||||
def create_batch_and_send_to_address2uprn(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue