Displaying 1 result from an estimated 1 matches for "main_work".
Did you mean:
aio_work
2008 Jan 17
3
periodic scheduling
...t, passing in the "sleep time", and
then implemented each worker something like this:
def do_work(args)
@args = args
@sleep_time = @args[:sleep_time]
logger.info "CampaignStarter #{jobkey} started"
while(true)
# do the actual work in another method
main_work
sleep @sleep_time
end
end
That seemed to work pretty well for the most part.
So now, looking at the current version. I''m guessing that it''s
probably not OK for me to use create() the way I was using do_work()
in the past; Presumably create() is supposed to return a...