Code Monkey home page Code Monkey logo

Comments (6)

DouweM avatar DouweM commented on September 2, 2024

I agree this should probably be exposed through AJ. It's not so much implementation detail as useful information to track the job in the backend-specific dashboard you'll be using.

Do all backends have a job ID of their own?

from activejob.

alup avatar alup commented on September 2, 2024

Not all backends support JID. E.g. "Resque" does not.

from activejob.

dhh avatar dhh commented on September 2, 2024

What would AJ add over what’s being provided in the queues? That you’d get a job-id back when enqueuing that you can use to later refer to? How would you refer to it? Manually or something more sophisticated?

On May 19, 2014, at 4:48 PM, Mike Perham [email protected] wrote:

Is this something that should/can be baked into AJ? Rails has Request ID middleware and all ActiveRecords have IDs. Sidekiq jobs all have a JID so the user can follow the path of execution in logs.

As a side note, this is one area where the native API leaks out of the AJ API: the return value of enqueue.

MyJob.enqueue(1)
=> "59c2c1997c3193b3c950cea8"

Reply to this email directly or view it on GitHub.

from activejob.

mperham avatar mperham commented on September 2, 2024

All good questions. No opinion but I'd suggest documenting the return value even if only to say "adapter-specific but may change in a future AJ release".

On May 19, 2014, at 8:24, David Heinemeier Hansson [email protected] wrote:

What would AJ add over what’s being provided in the queues? That you’d get a job-id back when enqueuing that you can use to later refer to? How would you refer to it? Manually or something more sophisticated?

On May 19, 2014, at 4:48 PM, Mike Perham [email protected] wrote:

Is this something that should/can be baked into AJ? Rails has Request ID middleware and all ActiveRecords have IDs. Sidekiq jobs all have a JID so the user can follow the path of execution in logs.

As a side note, this is one area where the native API leaks out of the AJ API: the return value of enqueue.

MyJob.enqueue(1)
=> "59c2c1997c3193b3c950cea8"

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

from activejob.

dhh avatar dhh commented on September 2, 2024

I’d take a patch for that :)

On May 19, 2014, at 6:08 PM, Mike Perham [email protected] wrote:

All good questions. No opinion but I'd suggest documenting the return value even if only to say "adapter-specific but may change in a future AJ release".

On May 19, 2014, at 8:24, David Heinemeier Hansson [email protected] wrote:

What would AJ add over what’s being provided in the queues? That you’d get a job-id back when enqueuing that you can use to later refer to? How would you refer to it? Manually or something more sophisticated?

On May 19, 2014, at 4:48 PM, Mike Perham [email protected] wrote:

Is this something that should/can be baked into AJ? Rails has Request ID middleware and all ActiveRecords have IDs. Sidekiq jobs all have a JID so the user can follow the path of execution in logs.

As a side note, this is one area where the native API leaks out of the AJ API: the return value of enqueue.

MyJob.enqueue(1)
=> "59c2c1997c3193b3c950cea8"

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

from activejob.

mperham avatar mperham commented on September 2, 2024

Done #32

from activejob.

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.