question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python RQ support

See original GitHub issue

I’m having hard time setting up APM with Python RQ. I tried following old solution Python agent only recording some background tasks, which led me to creating custom rq.job. But this solution no longer works. I tried setting API_REQUEST_SIZE to 1b instead of MAX_QUEUE_SIZE but that didn’t make a change.

I tried to debug where the things go wrong but the code is just advanced for me. I created minimal Django app with Elastic APM working on the view and my attempt to implement TracingJob.

Readme describes how to setup the app and how to replicate my issue. It would be great if someone with understanding of the queue and the transport layer could take a look at it.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stlkcommented, Nov 22, 2019

Awesome, I’ve got it working. Thank you for your help!

0reactions
basepicommented, Apr 16, 2020

Done. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

RQ: Documentation Overview
A job is a Python object, representing a function that is invoked asynchronously in a worker ... Specifying multiple dependencies are also supported:....
Read more >
RQ: Simple job queues for Python
RQ (Redis Queue) is a simple Python library for queueing jobs and processing them in the background with workers. It is backed by...
Read more >
RQ: Workers
A worker is a Python process that typically runs in the background and ... --path or -P : multiple import paths are supported...
Read more >
RQ: Connections - Python RQ
An example will help to understand it: from rq import Queue, Connection from redis import Redis with Connection(Redis('localhost', 6379)): q1 = Queue('foo') ...
Read more >
Running RQ Workers under systemd - Python RQ
To run multiple workers under systemd, you'll first need to create a unit file. We can name this file rqworker@.service , put this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found