GithubHelp home page GithubHelp logo

Comments (3)

rdehuyss avatar rdehuyss commented on May 27, 2024 1

You're on the bleeding edge of JobRunr/GraalVM/Quarkus here.

For native image to work, you need to create your jobs using JobRequest / JobRequestHandler. At this time, I did not yet look into the newer Serialization Features of GraalVM.

from jobrunr.

rdehuyss avatar rdehuyss commented on May 27, 2024 1

P.s.: I think you're missing something on your JobCreatorService class as that's the one that JobRunr needs serialization access to.

@ApplicationScoped
@RequiredArgsConstructor
@RegisterForReflection(serialization = true) // this is the class where you need to enable serialisation as the lambda is inside this class (perhaps also on RestExecutor)
public class JobCreatorService {

}

from jobrunr.

terziisk avatar terziisk commented on May 27, 2024

@rdehuyss The approach using JobRequest / JobRequestHandler - works fine. Thanks!

With this approach we faced another issue - if a job failed, then on retry we were receiving serialization exception on selectJobsScheduledBefore.
We had such dependencies:

implementation 'io.quarkus:quarkus-jackson' 
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.0'

Then we changed it to

implementation 'io.quarkus:quarkus-jackson'
implementation 'io.quarkus:quarkus-resteasy-jackson'

and this problem was solved. This information may help somebody because the Installation guide recommended some other libraries.

from jobrunr.

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.