Comments (4)
Hi,
you are looking at 1.0 API which has been using Laravel style. Take a look at 2.0 described in documentations.
You are still not able to pass objects directly due to conceptual limitations (for example, what PHP User should do in Golang handler?), but you have two clear methods responsible for hydration/extraction of data so you can pack this object into any form you want. https://github.com/spiral/docs/blob/feature/2.0/queue/jobs.md#managing-payloads
from jobs.
Oh... thanks.
from jobs.
This feature is exactly the reason why we abandon such jobs design as it becomes impossible to implement rich payload management without a massive amount of magic.
from jobs.
- you will have to bump your job dependency to 2.0 in your app and refactor existing handlers. But it's easy, simply change the abstract class name and rename "do" into "invoke".
from jobs.
Related Issues (20)
- tune json.unmarshall package
- Redesign pointers usage
- Support of different AMQP Exchange types
- Deprecate repository and move it to the RR modules folder
- Support AMQP Routing Key
- [BUG] Error "missing header rr-attempt" although this header exist in AMQP message HOT 7
- nats broker? HOT 3
- [BUG] Setting maxAttempts don't work HOT 5
- AMQP consumer configuration
- Optimize JobExceptions
- Wrong dependency for PHP8.0 HOT 6
- Job pipelines are neither pause not resumed. HOT 1
- [BUG] RR is losing jobs under load HOT 1
- issue from github HOT 4
- issue from github_2
- issue from github spiral/jobs
- issue from github spiral/jobs2
- issue from github spiral/jobs3
- test issue from jira to go repo spiral
- PHP 8 / RoadRunner 2 Compatibility
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 jobs.