Displaying 20 results from an estimated 106 matches for "gethemant".
2007 Dec 17
7
Get "some read error" on calls to worker
I''m running the latest from svn (rev 285). I''ve been having a problem
launching a process repeatedly. What happens is that I get a debug
message "some read error" and then the worker refuses to run again.
I''ve stripped my worker down to just doing a puts and it still happens.
Like the other threads I want to launch my workers as needed, however I
get the
2006 Apr 25
7
[TIPS] File_column plugin and multiple file uploads
No..i am not a full time rails developer...i code in pl/sql for paying my
bills...and i am just working on a pet project...so i had some trouble in
doing..what i specify in the subject.....now somehow i solved this
problem...so those interested can look at the code at:
http://hemant.wordpress.com/2006/04/25/file_column-and-how-the-fuck-it-handles-multiple-files/
I write this mail and
2008 Jan 16
6
Backgroundrb 1.0.1: uninitialized constant Packet::ClassHelpers (NameError)
Hi,
just updated backgroundrb to release 1.0.1 and am getting this error when
trying to start backgroundrb.
vendor/plugins/backgroundrb/framework/core.rb:18: uninitialized constant
Packet::ClassHelpers (NameError)
Just updated from r298 where everything was working fine.
If I comment out the offending line then backgroundrb starts but I can''t
connect to it from my app.
Anyone have any
2008 Jan 18
8
Query All Worker
What does the method query_all_workers() do? There is no documentation
on what this method returns (1.0.1 version).
Orion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080118/9f9b8112/attachment.html
2006 Jul 06
5
memory uses
Hi All,
I have this small doubt. Does backgroundrb have anything to do with
dispatch.fcgi?
some dispatch.fcgi are taking memory as much as 186 MB ....
this is monstrous man...
Also, if i put load rails environment with backgroundrb.yml file to be
false.What will happen? i just loses access to db through ActiveRecord
right?
I can still use normal mysql gem to access db and modify the
2007 Dec 21
3
Exceptions in workers
If an exception is thrown in a worker, will the worker process exit?
If it does and I don''t want it to exit, do I need to rescue all
exceptions in every worker method?
Joe
2006 Apr 10
2
using web service for authenitcation
I am writting a web service for authenitcation of users and was using
web_service_scaffold :invoke for testing it out...and was able to consume it
using .NET. But my question is, whats the simplest method using which i can
use the same web service in the current Web App. I mean, not from an external
application or something but from the current web apps itself.
I found one method in AWDR, and
2007 Dec 25
6
error: no marshal_dump is defined for class Thread
I get this error periodically in backgroundrb.log, but only on my
production box (the one running ruby 1.8.5) - my dev box doesn''t get
this error. As far as I can tell, everything is working ok, despite
the error (I don''t really know how to determine if the jobs are
getting threaded successfully, but they are running, that I am sure
of).
Here''s the dump:
no
2007 Nov 09
3
Why the switch to SMTP
Can anyone explain why BackgrounDRb is switching form DRb to SMTP
protocol? That seems like a lot of overhead to add to the messaging
back and forth?
Orion
2006 Sep 01
11
mongrel thread safety and global variables
In environment.rb file, I initialize a connection to some data vending
servers, through TCP sockets.
The connection object is global and hence the code:
#environment.rb
$generic_connection = ConnectionClass.instance (singleton class)
$generic_connection.connect_me( this call will make the connection)
The above approach is to make sure that, only one connection is made to the
data vending
2008 Mar 09
13
Using the ip flag
Hey All,
I am looking for an example of the proper config settings for background rb to run my rails app and my backgroundrb instance on separate machines (or more precisely, to have a rails cluster with one backgroundrb machine). Does anyone have such examples?
Thanks!
-Noah
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Apr 12
6
Cutting down BackgrounDRb memory issue
Hi Folks,
I have been working to fix BackgrounDRb memory usage as such. Ruby1.8 GC
isn''t fork friendly and it seems to use a lot of memory because when you
fork, it sets a bit in all the objects in global scope which causes OS
to all pages in child process.
A classic solution is to use fork and exec, rather than just fork. Its
working and pretty stable, but you loose ability to pass
2006 Nov 07
2
start a worker when bdrb starts
I am sure..again I am missing something, but I am trying to start a
worker, when backgroundrb starts and it doesn''t seem to work.
Here is my config/backgroundrb_schedules.yml file:
feed_worker:
class: feed_worker
job_key: feed_worker_key
worker_method: do_work
trigger_args:
repeat_interval: 20.minutes
I even tried this from Rails controller:
# def start_feed_worker
#
2008 Apr 09
3
reload_on_schedule
Hello,
Does reload_on_schedule force the worker to be reloaded even if it is
already running?
Or does it just load the worker if its not running when the schedule fires?
I want to load the worker at the scheduled time if its not running, but I
don''t want to reload the worker if its already running.
Make sense?
Thanks,
Scott
2007 Dec 21
3
Jobs running too slow
Say I have a job that runs every minute, but it takes longer than a
minute to execute. Will it start a new job every minute?
If it does, then how would I make a job that sleeps for a certain
amount of time, then restarts? I have a job that could take an hour
or two to complete, and I don''t want to have multiple copies of that
job running at the same time.
Joe
2007 Dec 19
6
thread_pooling sleeping
I''m trying to run a single worker that could perform a periodic task
for a given user.
>From a controller, I imagine something like:
def start_job
MiddleMan.ask_work(:worker => :foo_worker, :worker_method => :perform_task,
:data => { :user_id = current_user.id })
end
def check_job
@status = MiddleMan.ask_status(:worker => :foo_worker)[current_user.id]
end
2007 Dec 08
3
Multiple Worker Methods on Different Schedules
Quick question: If I want to schedule different worker methods defined in
the same worker to trigger at different times, is this possible? Would the
following scheduler yaml work?
:schedules:
:foo_worker:
:worker_method: method1
:trigger_args: 0 */10 * * * * *
:job_key: some_key_1
:foo_worker:
:worker_method: method2
:trigger_args: 0 */15 * * * * *
:job_key:
2006 Apr 12
5
File upload doesn''t work in production mode
Can anyone understand what the production.log file is telling me. I''ve
tried playing with the permissions for the folders and it makes no
difference. Every time I submit the form to upload the file I get
"Application error (Rails)" which doesn''t really help.
Processing DocsController#create (for 82.152.151.194 at 2006-04-12
12:44:13) [POST]
Session ID:
2008 May 20
7
Problems sending large results with backgroundrb
I''m working on an application that does extensive database searching.
These searches can take a long time, so we have been working on moving
the searches to a backgroundrb worker task so we can provide a sexy AJAX
progress bar, and populate the search results as they are available.
All of this seems to work fine until the size of the search results gets
sufficiently large, when we start
2008 Jan 09
6
[PATCH] x 2 - Fix for "null pointer exception" when ask_status is called before worker is run, and docfixes
Sorry for attaching patches in emails to the mailing list, but I''m still
unable to login to Devjavu for Backgroundrb (I''m able to login just fine for
Merb''s Devjavu and submitted a ticket successfully).
Anyway, I encountered a bug when trying to #ask_status of a worker before
it''s run (or rather, before its result_hash has been set to something). Not
sure why