queue.add_job() does not send message to SQS

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, fastapi, python
Domain
backend, cloud

Research direction

Start by reproducing the reported FastAPI example with sqs-workers 0.5.12, boto3 1.28.49, and the shown queue.add_job call. Trace the queue.add_job entry point and verify that a successful call results in the message appearing in the configured SQS queue.

Written by the indexing model from the issue text.

Description

Hello,
I am using sqs-workers for handling long-term tasks and I faced an issue with sending tasks:
Here is my code snippet:

sqs = SQSEnv(session=boto_client.get_session()) queue = sqs.queue("dev-test-queue") async generate_task(request: Request): configuration_data = to_config(request) message_id = queue.add_job(job_name="exectute_task", config_data=configuration_data)

The point is queue.add_job(_) return message_id but message is not appeared under SQS queue.

Stack:

  • fast-api 0.103.1
  • boto3 1.28.49
  • sqs-workers 0.5.12
Dominant language
Python
Stars
37
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Doist/sqs-workers

All issues in Doist/sqs-workers

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.