You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm RQ's maintainer and I use Sentry in production. I plan on releasing a major improvement to RQ sometime in the next few weeks, but this upcoming change breaks Sentry's integration.
Solution Brainstorm
This pull request introduces a change that causes Sentry's RQ integration to fail. From what I can tell, the failure is caused by this change.
Can we get Sentry to support this change prior to the next major release of RQ? I plan on releasing this sometime in the next few weeks.
Hey @selwin, thanks a lot for the heads up! We'll have to see if someone has time to squeeze this in this week, because if not, realistically speaking it's not likely that we will be able to look at this until after next week.
Comming week we have our Sentry interal hackweek. (Where we stop our day to day work, and hack on other stuff)
So we will pick up the RQ issue again in the week of August 28th. Don't know when exactly we can work on this, because we have still other things in our pipeline that need finishing first.
Hi @antonpirker, no worries. My schedule is currently quite packed so the next release will probably be a month or two from now. Plenty of time still :)
So job._status is failed, but when I then call job.is_failed the _status is set to 'started' because the is_failed gets the status from the connection and sets _status.
The if in the Sentry SDK works with the new behavior and I am also ok with releasing it like this (will add a note that the order of the or statement in the if is important.
I just wanted to let you know about this behavior.
So job._status is failed, but when I then call job.is_failed the _status is set to 'started' because the is_failed gets the status from the connection and sets _status.
Yes, job.is_failed() calls get_status() gets job status from Redis so the user gets the most recent status and caches it in _status. In hindsight I should have designed it a bit differently.
Now worries, as long it is works that is fine :-)
I need an internal code review, and then we can deploy this with the next release of the SDK (this or next week)
Activity
sentrivana commentedon Aug 17, 2023
Hey @selwin, thanks a lot for the heads up! We'll have to see if someone has time to squeeze this in this week, because if not, realistically speaking it's not likely that we will be able to look at this until after next week.
selwin commentedon Aug 17, 2023
Thanks @sentrivana !
antonpirker commentedon Aug 18, 2023
Hey @selwin !
Comming week we have our Sentry interal hackweek. (Where we stop our day to day work, and hack on other stuff)
So we will pick up the RQ issue again in the week of August 28th. Don't know when exactly we can work on this, because we have still other things in our pipeline that need finishing first.
When exactly is your release planned?
selwin commentedon Aug 19, 2023
Hi @antonpirker, no worries. My schedule is currently quite packed so the next release will probably be a month or two from now. Plenty of time still :)
25 remaining items
selwin commentedon Sep 30, 2023
@antonpirker done!
rq/rq@dccfd97
antonpirker commentedon Oct 2, 2023
Thanks @selwin !
In theory it works now, but I discovered a strange behavior. Calling
job.is_failedin the Sentry integration, changes the status of the job.Look at this:
So
job._statusis failed, but when I then calljob.is_failedthe_statusis set to'started'because theis_failedgets the status from the connection and sets_status.The
ifin the Sentry SDK works with the new behavior and I am also ok with releasing it like this (will add a note that the order of theorstatement in theifis important.I just wanted to let you know about this behavior.
selwin commentedon Oct 2, 2023
Thanks!
Yes,
job.is_failed()callsget_status()gets job status from Redis so the user gets the most recent status and caches it in_status. In hindsight I should have designed it a bit differently.antonpirker commentedon Oct 3, 2023
Now worries, as long it is works that is fine :-)
I need an internal code review, and then we can deploy this with the next release of the SDK (this or next week)
antonpirker commentedon Oct 11, 2023
Support for the upcoming RQ version has been deployed @selwin : https://github.com/getsentry/sentry-python/releases/tag/1.32.0
So we are ready for you :-)
selwin commentedon Oct 11, 2023
Thanks! Now the pressure is on me to finish the feature 😁