|
I have a number of Gearman workers running constantly, saving things like records of user page views, etc. Occasionally, I'll update the PHP code that is used by the Gearman workers. In order to get the workers to switch to the new code, I the kill and...
Started by Karptonite on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Hmm, You could implement a code in the workers to check occasionally if the source code workers, and launch new ones..
|
|
So I'm starting to hear more and more about Web Workers . I think it's absolutely fantastic, but the question I haven't seen anyone really tackle so far is how to support older browsers that do not yet have support for the new technology.
The only solution...
Started by Joel Martinez on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Onload function pseudocode:
if( Worker....
This way, if you don't have Web Workers.
Currently, I only advocate using Web Workers for complex, long-running tasks that can be broken up, and for some reason, can't be done server-side.
You need.
|
|
I'm a little shocked to see how some developers don't care at all about anything besides the bare minimum of what they need to do their jobs.
They can use what language they learned at school, but have no idea of what other languages there are. They have...
Started by Vegar on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
I think is it expected that a basic level of competency be maintained in any workplace - for example: doctors have to re-take their board exams ... .
No, you are not unreasonable.
Unreasonably low.
That kind of a minimum standard seems to me unreasonable .
|
Ask your Facebook Friends
|
Canada: Workers Rights: Workers at CP Get Railroaded LabourStart headline - Source: Global Research
More...
Started by Labour Start on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at thebellforum):
|
|
The GitHub guys recently released their background processing app which uses Redis: http://github.com/defunkt/resque http://github.com/blog/542-introducing-resque
I have it working locally, but I'm struggling to get it working in production. Has anyone...
Started by Brian Armstrong on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As for surviving a reboot, I am not sure, but I reboot every 6 Basic AuthName "Resque Workers" AuthUserFile /var/www/server.com/current/resque/.htpasswd Require:setup rake task, it will save you lots....
Of God to manage deployment of workers.
|
|
Is there any way for me to share a variable between two web workers? (Web workers are basically threads in Javascript)
In languages like c# you have:
public static string message = ""; static void Main() { message = "asdf"; new Thread(mythread).Run();...
Started by ItzWarty on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
No, but you can send messages to web workers which can be arrays, objects, numbers, strings, booleans, and ImageData or any combination....
Are deliberately shared-nothing -- everything in a worker is completely hidden from other workers.
|
|
Hi,
I have a python (well, it's php now but we're rewriting) function that takes some parameters (A and B) and compute some results (finds best path from A to B in a graph, graph is read-only), in typical scenario one call takes 0.1s to 0.9s to complete...
Started by winter on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
An example of using the Queue module for managing workers can be found here: Queue Example
Looks like you need the "workers" to be separate processes (at least some of them with all communications to/from worker....
Library module Queue.
|
|
How have you set-up one or more worker scripts for queue-oriented systems? How do you arrange to startup - and restart if necessary - worker scripts as required? (I'm thinking about such tools as init.d/, Ruby-based 'god', DJB's Daemontools, etc, etc)...
Started by Alister Bulman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The workers have been designed to behave just like classic unix/linux daemons, thanks to simple workers pool management....
AFAIK, no "web servers.
That is part of the MQM will start a worker when new messages are placed into a queue.
|
|
I've got an app that could benefit from delayed_job and some background processing. The thing is, I don't really need/want delayed_job workers running all the time.
The app runs in a shared hosting environment and in multiple locations (for different ...
Started by Callmeed on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Delayed::....
Don't want workers running all the time - what are your concerns? Memory usage? Database connections?
To keep the impact of delayed_job low on your system, I'd run only one worker, and configure it to sleep most of the time.
|
|
I have a long mysql queue. I have 1 worker script that processes each queue.
but as this worker is running, the database may be updated or get new row inserts.
an example worker script
get_current_queue = SELECT from queue... while(get_current_queue) ...
Started by ggggggggg on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
First do update queue set worker_id = myid Where worker_id = '' LIMIT 100 Then select * from queue where worker_id = myid need some kind of fall-back....
Devote one field in table queue for worker id currently processing the row.
|