faktory | Language-agnostic persistent background job server | Job Scheduling library
kandi X-RAY | faktory Summary
kandi X-RAY | faktory Summary
At a high level, Faktory is a work server. It is the repository for background jobs within your application. Jobs have a type and a set of arguments and are placed into queues for workers to fetch and execute. You can use this server to distribute jobs to one or hundreds of machines. Jobs can be executed with any language by clients using the Faktory API to fetch a job from a queue.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of faktory
faktory Key Features
faktory Examples and Code Snippets
Community Discussions
Trending Discussions on faktory
QUESTION
I want to use a ruby script to submit jobs to a faktory server (https://github.com/contribsys/faktory/wiki) to launch a python worker. Faktory should be perfect for that being language agnostic but the documentation covers only the ruby only (job and worker) or python only (job and worker) cases. Quickly, I have two questions:
- How to register the worker on the python side so that it is addressable from the ruby side?
- How to code correctly the ruby job (in particular, is the perform method required)?
Here is a minimal (not) working example. First, the python worker file:
...ANSWER
Answered 2020-Apr-23 at 15:11Your Ruby code doesn't need any jobs at all. The job is Python. The Ruby code just needs to create and send the job record to Faktory so the python worker can pick it up. In Ruby, you create a basic job using the plain old Faktory::Client API:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install faktory
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page