Code Monkey home page Code Monkey logo

Comments (4)

wolfy-j avatar wolfy-j commented on June 14, 2024

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.

myavchik avatar myavchik commented on June 14, 2024

Oh... thanks.

from jobs.

wolfy-j avatar wolfy-j commented on June 14, 2024

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.

wolfy-j avatar wolfy-j commented on June 14, 2024
  • 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)

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.