search for: testwork

Displaying 7 results from an estimated 7 matches for "testwork".

Did you mean: textwork
2007 Jan 23
1
Getting results from a dead worker. example?
...a little difficulty understanding how to retrieve results from deceased workers (from the documentation it seems that it is possible to do this). I pasted my simple test below. If anyone could point out what i should be doing differently i''d be very grateful. My test worker: class TestWorker < BackgrounDRb::Worker::RailsBase def do_work(args) results[:done_with_do_work] = true self.delete end end TestWorker.register My rake task: task :tester => :environment do k=MiddleMan.new_worker( :class => :test_worker ) sleep 1 # the worker will die during...
2009 Mar 31
1
Samba Authorizations
...le click on a document name that is imbedded in another file). I have a test Samba server. The SMB.CONF is near bear minimums: linux61:/etc/samba # cat smb.conf # Samba config file created using SWAT # from 205.235.227.16 (205.235.227.16) # Date: 2009/03/31 12:42:57 [global] workgroup = TESTWORKS netbios name = HOBBIT null passwords = Yes ldap ssl = no [cityworksro] comment = cityworks read only path = /home/documents linux61:/etc/samba # I don't have a LDAP server, but that may change in late summer. I seem to go back and forth between windo...
2006 Jun 16
5
BackgrounDRb / Testing Error: uninitialized constant BackgrounDRb
I''m digging into BackgrounDRb and having some problems testing a worker class. The following line in my test (created from script/generate worker Test) throws an error: worker = TestWorker.new(:test_string => "testing...") Error: /activesupport/lib/active_support/dependencies.rb:123:in `const_missing'': uninitialized constant BackgrounDRb (NameError) from /Users/itsderek23/Projects/drb_test/config/../vendor/rails/activerecord/lib/../../activesupport/l...
2006 Jul 05
5
''m having trouble with BackgrounDrb
Hi. I thought that BackgrounDrb was the perfect solution for my long running report production tasks. But I can''t seem to get anything useful back out of it. I set up a simple test worker that just does class TestWorker < BackgrounDRb::Rails attr_reader :pupil def do_work(args) @progress=0 @pupil=Pupil.find(3) sleep rand*10 @progress=100 end when I try to access this via @pupil=MiddleMan.get_worker(session[:job_key]).pupil once progress hits 100% [I can access progress fine, BTW] a...
2015 Dec 13
2
Dovecot SASL and GSSAPI (IPA)
Hi Everyone, I'm currently using dovecot SASL in postfix and passwd-file in dovecot for authenticating my users. I want to switch to using IPA instead. I have both the postfix (mailman01) and dovecot (mailman02) servers joined to the IPA domain. I have GSSAPI working in dovecot for IMAP. But, the SASL GSSAPI authentication in postfix fails with this error: warning: unknown[10.200.5.100]:
2006 Jun 15
5
Cannot invoke ActiveRecord subclass accessors in DRb worker
Hi there, I''m trying to create a worker to do some asynchronous web client work and update the data model with its results. It seems, however, that every call I make to an ActiveRecord subclass causes the whole thing to block. At least I think it''s blocked. Right now I''m just using debug log output. Is there a decent way to debug/test workers I can try? Is there any
2006 Dec 15
1
:job_key acting weird?
Hi all I''m experiencing something strange with a :job_key, it took me a very long time to find out a worker wasn''t doing it''s job because of the name of my job_key. The first one I tried was :make_kohier, and with that name (and lot''s of other ones) I can''t get the worker to work. I do get my key in return, but the job doesn''t start