Comments (6)
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.
Not all backends support JID. E.g. "Resque" does not.
from activejob.
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.
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.
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.
Done #32
from activejob.
Related Issues (20)
- 4.2.0.rc2 NoMethodError Exception: undefined method `deliver_now' for #<Mail::Message:0xfbcfef8> HOT 1
- Can I stack resque gem with plugin resque-history and ActiveJob? HOT 1
- ActiveJob with multiple databases HOT 4
- adapter to Amazon Simple Workflow HOT 1
- Convert resque-statsd to activejob-statsd HOT 9
- Add a proper usage guide HOT 3
- [Feature request] Cancel jobs HOT 40
- Set the job_id attribute on ActiveJob to the value from the adapter HOT 1
- Add deep serialization HOT 1
- amqp, SQS, stomp, other messaging/queuing support? HOT 5
- Support multiple adapters, map adapters to queues HOT 25
- Add new inline-like built-in adapter to process it in a thread HOT 28
- MyJob.enqueue Syntax HOT 6
- Provide more solid default adapter HOT 40
- Are multiple queues even possible as written? HOT 3
- Girl_friday adapter? HOT 4
- Should we add a delayed mixin so users can delay any method? HOT 32
- delayed job adapter doesn't work properly with float timestamp
- resque job serialization fails under Rails
- Setting resque queue adapter fails HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activejob.