Skip to content

Commit

Permalink
create local config; put local config in azurite; update queue messag…
Browse files Browse the repository at this point in the history
…e to match other values

Co-Authored-By: Bella L. Quintero <[email protected]>
Co-Authored-By: jcrichlake <[email protected]>
  • Loading branch information
3 people committed Nov 21, 2024
1 parent b67db22 commit 9143d90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion azure_functions/src/functions/caDphTimerTrigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export async function caDphTimerTrigger(myTimer: Timer, context: InvocationConte
// We set the visibility timeout for the message on reading, in queue.go
// messageTimeToLive of -1 means the message does not expire
// the queue message contents will (in future) be the key to client-specific config
const sendMessageResponse = await queueClient.sendMessage("cadph", {messageTimeToLive: -1})
// The message we send here must match the key in config, the scope in report_stream_sender, and the org name in RS
const sendMessageResponse = await queueClient.sendMessage("ca-phl", {messageTimeToLive: -1})
console.log("Sent message successfully, service assigned message Id:", sendMessageResponse.messageId, "service assigned request Id:", sendMessageResponse.requestId );

context.log('Timer function processed request.');
Expand Down
8 changes: 8 additions & 0 deletions config/local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"ca-phl": {
"shouldFetch": true
},
"flexion": {
"shouldFetch": true
}
}
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ services:
az storage container create -n config
az storage container create -n sftp
az storage blob upload --overwrite --account-name devstoreaccount1 --container-name sftp --name import/order_message.hl7 --file mock_data/order_message.hl7
az storage blob upload --overwrite --account-name devstoreaccount1 --container-name config --name config.json --file config/local.json
az storage queue create -n message-import-queue
az storage queue create -n message-import-dead-letter-queue
az storage queue create -n polling-trigger-queue
Expand Down

0 comments on commit 9143d90

Please sign in to comment.