Giter Club home page Giter Club logo

Comments (4)

brthor avatar brthor commented on May 24, 2024

Utilizing different sets of libraries in the producers and workers is unlikely to work with Gofer.NET without some clever hacking.

Since the target function location is serialized, and not something more abstract like a string, the producer and worker both need to have access to the target function.

One idea would be to have a sort of virtual assembly in the producer where tasks are defined, but do nothing. In the worker, this assembly would need to be replaced with one of the same Full Name with the task bodies replaced with the real code.

In the general case, this use-case is currently unsupported by Gofer.NET.

If you get it working though, please leave a comment on how you accomplished it and perhaps the docs could get updated.

from gofer.net.

nmoreaud avatar nmoreaud commented on May 24, 2024

Thanks for your answer. I guess I can make it work with a global variable (singleton or something like that). However, this is the most basic use case I can think of. For the project I'm working on, I need way more flexibility. I won't be able to test further this library, as it doesn't fulfill my needs

from gofer.net.

brthor avatar brthor commented on May 24, 2024

I can understand that there are some use-cases where this type of separation makes sense.

AFAIK this is not generally supported by distributed task libraries that work directly within the language like this one.

A more abstract task system that works on the process/command level may be more inline with what you need.

Currently, we have no plans to support this scenario officially so I'm going to close this issue out.

If you get it working though, I'd still be interested to hear how you did it.

from gofer.net.

brthor avatar brthor commented on May 24, 2024

Main Gofer examples show a producer with tasks code, and workers without (tasks are processed at client side!). By reading examples, we can think that tasks are executed by the producer (lambda evaluation).

Can you point out where you are seeing this?

In the guided example, the worker has a project reference to the producer so the producer's assembly is included as a dependency.

https://brthor.github.io/Gofer.NET/example#add-langversion-property

<ItemGroup>
  <ProjectReference Include="..\primary\primary.csproj" />
</ItemGroup>

from gofer.net.

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.