Displaying 20 results from an estimated 300 matches similar to: "Schedule parser"
2008 Jan 31
2
cron scheduling problem
I''m running a fresh checkout of release 1.0.1 ...
It''s now 11:32 am local time on January 31.
I''ve configured a single worker for a test.
If I use the following schedule in my background.yaml file:
:schedules:
:debugger_worker:
:ping:
:trigger_args: 0 35 11 * * * *
Backgroundrb starts up without error.
If I make the following
2007 Mar 05
2
Scheduled workers only run once unless you call self.delete inside the worker
I had a worker scheduled to run every minute with
backgroundrb_schedules.yml:
ebay_runner:
:class: :ebay_auction_worker
:job_key: :ebay_auction_runner
:trigger_type: :cron_trigger
:trigger_args: 0 * * * * * *
This worker posts an auction to eBay from a queue of auctions every minute.
I was having a problem where the worker would run ok the first time, but
never any subsequent minutes
2008 Jan 28
4
Scheduling same worker/method at different times with different args
I need to run the same worker''s method twice per day with different
arguments. Unfortunately, only the second entry in the schedule is firing.
I created an experimental worker to verify this:
Worker:
class ExperimentWorker < BackgrounDRb::MetaWorker
set_worker_name :experiment_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
2007 Mar 29
3
thread pool
Hi,
I am trying to limit the number of worker threads running at the same
time. Adding ":poolsize: 2" to backgroundrb.yml or starting
backgroundrb server like this
script/backgroundrb start -- -s 2
does not seem to help. I can still create more than 2 worker threads
from a rails app.
I tried this on
ubuntu dapper
- ruby 1.8.4
- backgroundrb 0.2.1
as well as
2008 Apr 08
0
cron trigger problem
Hi,
I am playing around with backgroundrb 1.0.3. I have the following
backgroundrb.yml,
---
:backgroundrb:
:port: 11006
:ip: 0.0.0.0
:schedules:
:task_worker:
:run:
:trigger_args: */10 * * * * *
My task worker is just,
class TaskWorker < BackgrounDRb:MetaWorker
set_worker_name :task_worker
def run
logger.info "begin"
sleep 60
logger.info
2008 Jan 25
1
worker and sleep
Hi Hermant,
I have seen some earlier messages in the list where you warned people
never to use sleep() in workers. However, currently I have a need for
a worker to issue a command to an external host and then keep
checking that external host for a status change. Other than sleep,
what else can be used to make a worker wait some time (say 1 second)
between checks?
cheers,
mengkuan
2007 Mar 30
2
keep-alive
Greetings,
I''m reporting on what I found after trying to use mechanize on a site
like www.tellme.com.
With mechanize versions 0.6.5, 0.6.4, 0.6.3, I was able to use
mechanize without any problems on www.tellme.com.
However, when I upgraded to 0.6.6 or 0.6.7, mechanize simply ground
to a halt after a while. I''m not sure where the problem lies, but
after looking at the
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
I have a scheduled worker that runs every minute, checking for new eBay
auctions to post. If it finds an auction, then it posts it. If there are no
auctions in the database that are queued up, it simply does nothing. I got
the worker to finally run as a scheduled worker, every minute. However,
after about 30-45 scheduled runs, it simply stops running.
My backgroundrb_schedules.yml file:
------
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:
2007 Apr 04
0
autostart
Hi,
Does backgroundrb 0.2.1 support autostart?
I''ve tried to set up autostart by adding something like the following
in backgroundrb.yml:
autostart:
1:
class: bar_worker
args: ''''
However, that does not seem to work. I also tried the scheduling
mechanism like this in backgroundrb_schedules.yml:
bar:
:class: :bar_worker
:job_key: :bar1
2008 Jan 16
2
mysterious crash of a particular worker
Hi,
I am using the latest checkout from backgroundrb release 1.0.1. I
have a worker called status_checker that periodically (every minute)
checks the status of certain hosts over the network. It works fine at
the beginning but after a while the worker will mysteriously
disappear and stop working. I have other workers running but they do
not disappear like this worker does.
These are
2008 Mar 31
3
UK Daylight Savings
A quick fix for anyone running into this problem:
load_schedule was crashing cron_trigger.rb#160, and I found that for
triggers like "0 20 5 * * * *" it was putting in 32 for the date (even
though its Mon Mar 31 04:16:21 BST 2008). Something to do with switching to
day light savings I think, which concludes after 2am. I patched it by adding
day = 31 if day == 32
on the line before.
2008 Apr 02
2
scheduling worker methods in rails
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i''m trying desperately to schedule some worker methods within rails 2.0.2. The
problem is, both methods don''t even get called by BackgrounDRb.
my background.yml:
> ---
> :backgroundrb:
> :port: 11006
> :ip: 0.0.0.0
> ---
> :schedules:
> :server_worker:
> :update:
> :trigger_args: 1 *
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
#
2007 Dec 06
10
Feedback on RC2
I tried to upgrade my existing application to RC2 last night. Like many, I
use this mostly for running scheduled tasks. For the moment, I''ve abandoned
the effort, but am looking forward to being able to use this. Feedback
below:
First, the reason I was looking forward to this upgrade was to use the
threaded scheduler. I have an application with long-running tasks. I found
that
2008 Feb 02
6
Suspended start of task not suspended
Hi
I thought this should suspend the task by 1 minute, but it starts
immediately:
MiddleMan.ask_work( :worker => :bar_worker, :worker_method
=> :test_method, :trigger_args => { :start => (Time.now + 1.minute)})
Is the start argument not allowed in the new backgroundrb (mine is at
rev HEAD (=314))? What can I do about this?
I really need to suspend starting the task as I want
2008 Jan 22
11
Unable to load Models which reference plugins?
I''m using a plugin which adds a method to ActiveRecord::Base
http://similetimelinerailshelper.googlecode.com/svn/trunk/simile_timeline/
This adds an "acts_as" type declaration to the Models, via the file in
vendor/plugins/simile_timeline/lib/simile_timeline.rb Rails is working
with these declarations, and they are being used successfully in
''regular
2006 Dec 11
1
scheduled only called once
when working with the scheduler i found that using
:trigger_args: 0 * * * * * *
in config/backgroundrb_schedules.yml the worker gets only called once.
:trigger_args: "0 * * * * * *" works as expected.
Maybe this should be changed in the README ?
regards tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Dec 30
3
A newbie question regarding BackgroundRb
Hi all,
I just read Ezra''s article on BackgroundRb and decided to use it one
of my projects. I installed the plugin into my rails project using
script/plugin and then ran rake backgroundrb:setup to copy the yml
scripts.
Now my backgroundrb.yml looks like
=======
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: development
host: localhost
database_yml:
2006 Nov 20
2
schedule support on latest svn, a question
I''m running the latest backgroundrb mainly for scheduled tasks support.
As per the documentation I created the backgroundrb_schedules.yml with
the following:
simple_label:
:class: :document_sorter_worker
:worker_method: :do_work
:job: :bleh
:trigger_args:
:start: <%= Time.now + 5.seconds %>
:end: <%= Time.now + 10.minutes
:repeat_interval: 1.minute
Under