GithubHelp home page GithubHelp logo

Comments (9)

zw963 avatar zw963 commented on May 23, 2024 4

@arnkorty , setting it in your's ActiveJob::Base subclass.

e.g.

class Order::DelayedActionJob < ActiveJob::Base
  attr_accessor :jid
  around_enqueue do |job, block|
    job.jid = block.call
  end

  def perform(order, permitted_states, target_state, description)
        # do something
  end
end

from sidekiq-status.

jayhahn avatar jayhahn commented on May 23, 2024

I was running into the same issue where the jobs are running fine, and I can see them in the /statuses but I would not be able to retrieve the status. They always returned an empty object {}.

After I changed the activejob to a pure sidekiq job, status started working...

from sidekiq-status.

esbanarango avatar esbanarango commented on May 23, 2024

👍

from sidekiq-status.

arnkorty avatar arnkorty commented on May 23, 2024

I found the activejob return jobid and sidekiq jobid is different. Do you know how to get the real job id with activejob? thanks.
47230d7b-cb9c-4e5c-ac2d-5262e8209d5e
ec23d641-b51b-40d5-9b82-402df1458f85

from sidekiq-status.

kdiogenes avatar kdiogenes commented on May 23, 2024

@arnkorty you can also use the old syntax, it's return the sidekiq job id: UserMailer.delay.mail_method

from sidekiq-status.

dmitry avatar dmitry commented on May 23, 2024

Is there are still a problem with latest ActiveJob?

from sidekiq-status.

rept avatar rept commented on May 23, 2024

Should this work when I do a deliver_later ? I don't get any status when I mail like that.

from sidekiq-status.

nfedyashev avatar nfedyashev commented on May 23, 2024

@zw963 thank you so much for posting this workaround!

from sidekiq-status.

kenaniah avatar kenaniah commented on May 23, 2024

I recently added support for ActiveJob in fcd820e, which will show up in 0.7.0 when it's released.

from sidekiq-status.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.