ruote tmp/log_2011-12-21.html

2011-12-21 23:59:23 utc lofic hello jmettraux
2011-12-21 23:59:32 utc jmettraux lofic: hello
2011-12-21 23:59:41 utc lofic I may have a bug, not quite sure yet
2011-12-21 23:59:49 utc lofic it seems that
2011-12-22 00:00:22 utc lofic when I use EmScheduler instead of PlainScheduler
2011-12-22 00:00:27 utc jmettraux ouch
2011-12-22 00:00:34 utc jmettraux I should get rid of that
2011-12-22 00:00:35 utc lofic the threads keep running
2011-12-22 00:01:19 utc lofic i mean with :
2011-12-22 00:01:48 utc lofic ched.running_jobs.each { |job| puts job.tags }
2011-12-22 00:02:04 utc lofic sched.running_jobs*
2011-12-22 00:02:31 utc lofic My thread is :
2011-12-22 00:03:05 utc lofic @@scheduler.in '0s', :tags => 'test1' do
2011-12-22 00:03:05 utc lofic puts 'Louis was here'
2011-12-22 00:03:05 utc lofic puts 'Done'
2011-12-22 00:03:05 utc lofic end
2011-12-22 00:03:19 utc lofic (this is a test)
2011-12-22 00:03:32 utc lofic I see the 'Done' printing
2011-12-22 00:03:57 utc lofic but the thread is still in sched.running_jobs
2011-12-22 00:04:15 utc lofic do you have a clue ?
2011-12-22 00:04:26 utc lofic no problem with PlainScheduler
2011-12-22 00:04:33 utc jmettraux EmScheduler should die
2011-12-22 00:04:36 utc jmettraux it's no good
2011-12-22 00:04:40 utc lofic why ?
2011-12-22 00:04:46 utc jmettraux IIRC EM works with a pool of thread
2011-12-22 00:04:48 utc jmettraux s
2011-12-22 00:05:06 utc jmettraux so you're probably seeing a recycled thread
2011-12-22 00:05:36 utc jmettraux or it might be interesting to see the state of the thread, maybe it's not "running"
2011-12-22 00:05:41 utc lofic but the thread I see is tagged with the name I set
2011-12-22 00:05:54 utc jmettraux recycled thread maybe
2011-12-22 00:05:56 utc lofic it IS running :)
2011-12-22 00:06:03 utc jmettraux how do you know ?
2011-12-22 00:06:04 utc lofic I checked
2011-12-22 00:06:15 utc lofic @@scheduler.running_jobs.each { |job| puts job.tags; puts job.running? }
2011-12-22 00:06:29 utc lofic -> puts job.running?
2011-12-22 00:06:29 utc jmettraux job running != thread running
2011-12-22 00:06:31 utc lofic -> true
2011-12-22 00:06:39 utc lofic erf
2011-12-22 00:06:46 utc lofic right
2011-12-22 00:07:08 utc lofic do you have a way to check the running state then ?
2011-12-22 00:07:37 utc jmettraux p job.last_job_thread
2011-12-22 00:07:52 utc lofic let me check
2011-12-22 00:10:22 utc lofic ahah : works but I forgot that I changed in Plain hehe, let me check again
2011-12-22 00:11:12 utc lofic Running jobs :
2011-12-22 00:11:13 utc lofic test1
2011-12-22 00:11:13 utc lofic #
2011-12-22 00:18:11 utc jmettraux p job.last_job_thread.status
2011-12-22 00:19:05 utc lofic Louis was here
2011-12-22 00:19:05 utc lofic Done
2011-12-22 00:19:06 utc lofic Running jobs :
2011-12-22 00:19:06 utc lofic job.tags : test1
2011-12-22 00:19:06 utc lofic job.last_job_thread #
2011-12-22 00:19:06 utc lofic job.last_job_thread.alive? true
2011-12-22 00:19:19 utc lofic I try with status
2011-12-22 00:20:11 utc lofic job.last_job_thread.status sleep
2011-12-22 00:21:07 utc lofic is it bad, doc ?
2011-12-22 00:27:28 utc lofic when I launch other threads
2011-12-22 00:27:39 utc lofic i sums up to 20
2011-12-22 00:27:56 utc lofic it seems related to EM 20 threads
2011-12-22 00:27:57 utc jmettraux so I guess #running_jobs is useless with EmScheduler
2011-12-22 00:28:18 utc jmettraux or I could filter out threads that are not in the "run" status
2011-12-22 00:28:20 utc lofic the pool of 20
2011-12-22 00:28:37 utc lofic ok
2011-12-22 00:29:10 utc lofic so what are recycled threads ?
2011-12-22 00:29:38 utc jmettraux IIRC EM manages a pool of threads that it recycles
2011-12-22 00:30:20 utc lofic ok so the threads are just there, not yet recycled, that's it ?
2011-12-22 00:30:28 utc jmettraux probably
2011-12-22 00:30:32 utc lofic ok
2011-12-22 00:30:34 utc lofic anyway
2011-12-22 00:32:05 utc lofic if you are positively sure that EMScheduler is no good and that I can switch back to Plain even in an EM 'loop'
2011-12-22 00:32:13 utc lofic I'm fine with that
2011-12-22 00:32:55 utc lofic so you plan to get rid of it ?
2011-12-22 00:32:55 utc jmettraux I'm sure
2011-12-22 00:33:02 utc lofic ok :)
2011-12-22 00:33:13 utc lofic problem solved
2011-12-22 00:33:17 utc lofic thanks
2011-12-22 00:35:36 utc jmettraux you're welcome
2011-12-22 00:38:13 utc jmettraux I will filter out non running threads
2011-12-22 00:42:09 utc lofic as you wish
2011-12-22 00:45:02 utc lofic maybe you should put a warning on EMScheduler on the home page of rufus-scheduler because some could see it as a killer feature :)
2011-12-22 00:45:29 utc jmettraux not many people use #running_jobs
2011-12-22 00:45:55 utc lofic it sounds good, to rely on the EM mecanisms
2011-12-22 00:46:29 utc lofic erf, yes, but anyway you seem to think that it is no good in general
2011-12-22 00:47:33 utc jmettraux there is no added value from the EmScheduler and I'm losing time maintaining it
2011-12-22 00:51:06 utc lofic ok
2011-12-22 00:51:35 utc lofic I'm going to bed, see you
2011-12-22 00:53:57 utc jmettraux ciao