Comments (4)
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.
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.
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.
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)
- Add Support for overloaded Methods HOT 1
- Improve Documentation
- Re-enable At-Least-Once Processing
- Persist Scheduled Tasks to the Backing Store HOT 2
- Exceptions cannot be passed as as arguments.
- Task execution with argument of type System.Type throws exception HOT 4
- Roadmap to 1.0 Stable Release HOT 1
- Test Gofer.NET with Redis Cluster HOT 1
- TaskClient should run TaskScheduler in its own thread.
- Ensure ScheduledTasks are queued in order of timestamp.
- Add Windows Build
- [FeatureRequest] Add overload with cancellation token to the Listen() method HOT 8
- Can't use connection strings with passwords HOT 3
- Priority tasks
- Simple way to get Queue Depth? HOT 5
- Example of running multiple job listeners in a single process? HOT 5
- Add a configurable delay if there are no jobs in the queue HOT 2
- Add TaskQueue.Enqueue(Expression<Func<T>>) to suppress warning CS4014 HOT 2
- Dashboard for monitoring
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 gofer.net.