Skip to content

Commit

Permalink
feat: adding steps for forms handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Kumar Singh committed Feb 19, 2025
1 parent 8e9e6c9 commit 2888b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/audit-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ export async function loadExistingAudit(auditId, context) {
export async function sendContinuationMessage(message, context) {
const { log } = context;
const { queueUrl, payload } = message;
const queueUrl1 = 'https://sqs.us-east-1.amazonaws.com/282898975672/spacecat-scraping-jobs';

try {
const { sqs } = context;
log.info(`Debug log 6 ${JSON.stringify(payload, null, 2)}`);
log.info(`Debug log 7 ${queueUrl}`);
const queueUrl1 = 'https://sqs.us-east-1.amazonaws.com/282898975672/spacecat-scraping-jobs';
await sqs.sendMessage({
// QueueUrl: queueUrl,
QueueUrl: queueUrl1,
MessageBody: JSON.stringify(payload),
});
} catch (e) {
log.error(`Failed to send message to queue ${queueUrl}`, e);
log.error(`Failed to send message to queue ${queueUrl1}`, e);
throw e;
}
}

0 comments on commit 2888b82

Please sign in to comment.