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")
|
temp=$(eval echo "$line")
|
||||||
BUILD_ARGS="$BUILD_ARGS --build-arg $temp"
|
BUILD_ARGS="$BUILD_ARGS --build-arg $temp"
|
||||||
done <<< "${{ inputs.build_args }}"
|
done <<< "${{ inputs.build_args }}"
|
||||||
|
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--platform linux/amd64 \
|
--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,
|
"s3_uri": s3_uri,
|
||||||
}
|
}
|
||||||
|
|
||||||
# # Don't run on sqs yet
|
response = sqs_client.send_message(
|
||||||
# response = sqs_client.send_message(
|
QueueUrl=queue_url,
|
||||||
# QueueUrl=queue_url,
|
MessageBody=json.dumps(message_body),
|
||||||
# MessageBody=json.dumps(message_body),
|
)
|
||||||
# )
|
|
||||||
|
|
||||||
# logger.info(
|
logger.info(
|
||||||
# f"Sent message to address2UPRN queue. "
|
f"Sent message to address2UPRN queue. "
|
||||||
# f"Task: {task_id}, SubTask: {sub_task_id}, MessageId: {response['MessageId']}"
|
f"Task: {task_id}, SubTask: {sub_task_id}, MessageId: {response['MessageId']}"
|
||||||
# )
|
)
|
||||||
|
|
||||||
# return response["MessageId"]
|
return response["MessageId"]
|
||||||
return str(uuid4())
|
|
||||||
|
|
||||||
|
|
||||||
def create_batch_and_send_to_address2uprn(
|
def create_batch_and_send_to_address2uprn(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue