Displaying 1 result from an estimated 1 matches for "largework".
Did you mean:
largeworker
2008 Jun 04
0
Large requests break BackgrounDRb
...it crashes or at least incapacitates BackgrounDRb.
For example, take these two workers:
class SmallWorker < BackgrounDRb::MetaWorker
set_worker_name :small_worker
set_no_auto_load(true)
attr_reader :payload
def create(args)
@payload = ''s '' * 512
end
end
class LargeWorker < BackgrounDRb::MetaWorker
set_worker_name :large_worker
set_no_auto_load(true)
attr_reader :payload
def create(args)
@payload = ''L'' * 65600
end
end
I''ll start with SmallWorker. Created by:
@job_key = rand 1000 # Nevermind the weak job keys fo...