Displaying 20 results from an estimated 5000 matches similar to: "first_run timezone weirdness"
2006 Aug 07
3
repeat_every doesn''t tie in with first_run...
Ezra,
Sorry for inundating the list. In using the autostart, repeat_every,
and first_run, I noticed a behaviour I didn''t expect.
I would like the job to run starting at 2am, and then every 24 hours.
So I set first_run to Time.now.beginning_of_day + 2.hours, and
repeat_every to 24.hours.
The problem is if backgroundrb starts up at 6am (due to a code change
or server bump), then the
2007 May 15
4
Need help with singleton worker
We have a fairly expensive task that we''d rather not schedule too many
instances of in parallel.
Couldn''t get pool_size to limit the amount of workers, and I figure
that''s hardly optimal anyway, so would like to have the work queued up
for a single named worker instead, running as soon as possible.
Using MiddleMan.schedule_worker() with :job_key does start off a
2006 Dec 13
4
Unintended thread forked in autostart
Hello all,
I''ve got the problem about the following simple application using
autostart and repeat_every.
A thread(?) is forked for processing task at first, but at sencond time
two threads seem to be forked.
My simple application code is...
- In worker class
class FooWorker < BackgrounDRb:Rails
repeat_every 2.minutes
first_run Time.now
def do_work
puts Time.now.to_s +
2006 Sep 28
2
Duplicate record weirdness ?
First off BackgroundRb rocks!!!!. Top marks Ezra, it''s gone a long way to
stopping us from doing a nasty curl/cron hack :)
Okay so here''s what we''re using it for.
We''re synchronising data from a Filemaker database, via web service equest,
into a mysql database via a rails model called ''Syncer'' [How''s that for an
oddball use case!].
2010 Apr 14
1
[PATCH] Change the date format used in RHEV OVF output
Date formats were previously undefined in RHEV's OVF output. They are now
defined as: 'yyyy/mm/dd hh:mm:ss'.
This change updates dates output by virt-v2v to use the new format.
---
lib/Sys/VirtV2V/Target/RHEV.pm | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/lib/Sys/VirtV2V/Target/RHEV.pm b/lib/Sys/VirtV2V/Target/RHEV.pm
index
2012 Oct 03
3
2.4-beta fixes for MinGW
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
With these one can build 2.4-beta (AKA 2.3.99.0) with mingw32 (gcc-4.7.0).
Note, however, that win32 subdirectory is:
1) Lacking a complete Makefile.am, so it can't be built with autotools.
2) Depends on MFC, and MFC is not provided by any MinGW toolset (and
MS' MFC is, most likely, highly incompatible with MinGW).
So you only get a console
2007 Jun 20
1
NULL ptr dereferences found with Calysto static checker
Hi,
I've ran my static checker Calysto on openssh and found the following bug:
Possible NULL-ptr deref (vc536):
@/work/benchmarks/SOURCES/openssh-4.6p1/moduli.c:173
+ ptr gtm returned from gmtime dereferenced without checking (gmtime can
return NULL).
There are probably more possible NULL-ptr dereferences, but Calysto
currently does not check the usage of library functions (for instance,
if
2006 Dec 07
2
backgrounDRb problems with results and MiddleMan
Hi there,
I''ve been experimenting with implementing BackgroundDRb in my rails app but
am running into some problems.
The primary problem I''m getting is in cleaning up worker threads, or getting
any kind of response out of worker threads.
If try using the response function/hash in my Worker the worker will not
execute reporting that response is an unknown variable or function.
2006 Aug 25
1
repeat_every when a worker is not done yet...
If I use repeat_every for a worker, if the do_work function has not
completed by the time the next interval rolls around, will a new
thread be started, resulting in 2 threads for the same worker?
Looking at start_process, it seems like the thread gets created (which
spins off the thread and then continues to execute the start_process
method, right?), then sets the @next_start. So if the
2011 Jan 03
0
Macmillan dictionary (gold App) fails first run
Hello
I'm trying to get Macmillan Dictionary 2nd ed to work
http://appdb.winehq.org/objectManager.php?sClass=version&iId=15607
Under self compiled Wine 1.3.10 on Debian Lenny (I do not know of
(packaged wine) deb publicly available)
It is told to be a Gold app so maybe it'll work somehow.
Installs ok
- I followed the instruction NOT to install QuickFind and
- I Installed the
2012 Jan 28
0
Error installing LeaguesOfLegends
Hi,
i would ask for some help.
i am running into the following issue installing LeaguesOfLegends
user at pc:~$ wine Downloads/LeagueofLegends.exe
Log file is being written to C:\users\user\Temp\LeagueofLegends.exe.log
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr
0x274f84
user at pc:~$ winedbg Downloads/LeagueofLegends.exe
WineDbg starting on pid 0071
start_process
2006 Jul 19
1
A couple of problems
Hi Ezra,
Thanks for the great work on BackgrounDRb. I have come across a
couple of problems.
1. I wanted to define a simple class in the worker file to wrap up and
pass back some data to my controller. It seems that if I create the
class either inside or outside of my worker class (in the same file)
it gets wrapper by a DRb::DRbUknown object and therefore cannot be
accessed from my controller.
2017 Feb 26
1
v2.2.28: patches (to use libressl 2.4.5) and test error (strftime)
Timo,
re: What OS is this?
OS 10.12.3 with Xcode 8.2.1 and the official clang 3.9.0
re: test-time-util.c
t_strftime and variants now .......................................... : ok
Info: 'Thu, 08 Dec 2016 18:42:16 +0100'
test-time-util.c:124: Assert failed: strcmp(t_strftime(RFC2822_FMT, gmtime(&ts)), exp) == 0
Info: 'Thu, 08 Dec 2016 18:42:16 +0100'
2006 Sep 25
1
Clearing ActiveRecord Sessions
Hello all,
I am interested in using BackgrounDRb to clear out ActiveRecord based
sessions. I have this working, just with a small hitch, here is the code:
class ClearSessionsWorker < BackgrounDRb::Rails
repeat_every 7.minutes
first_run Time.now
def do_work(args)
Session.destroy_all(["updated_at < ?", 20.minute.ago ])
end
end
It''s not very complicated and
2006 Aug 29
1
Tasks get executed twice with repeat_every
I have a simple worker that I set up with repeat_every:
class DueNoteQueuerWorker < BackgrounDRb::Rails
repeat_every 1.minutes
first_run Time.now
def do_work(args)
@logger.debug("Sending due notes. The current time is #{Time.now}")
end
end
I want this to run every minute, all the time. The first run is fine,
but it seems that subsequent runs get executed
2006 May 23
2
Can Win32 service more than one rails request at atime?
> On 5/23/06, Walter <Walter at mwsewall.com> wrote:
> [...]
> > I realize that mongrel is not thread safe, I was hoping mongrel might
> spawn a few processes and serve them in the background to emulate what I
> wanted.
> >
>
> Rails is not thread-safe.
>
Yes, that?s what I meant.
<snip>
>
> The idea of the BackgroundDrb is that you perform
1999 Apr 08
0
Keep-timestamp-in-`get'-patch for smbclient in samba-2.0.3
--------
--Multipart_Thu_Apr__8_13:33:51_1999-1
Content-Type: text/plain; charset=US-ASCII
Hello guys,
I always wondered why smbclient keeps timestamp in `put'ting a file
but does not keep it in `get'ting a file. Alternative to keep the
time stamp in `get'ting file is to use -Tc option or smbtar script,
but they are a bit hairy for interactive use, and it can only dump
files with an
2007 Aug 02
0
[LLVMdev] Debug info for conditionally defined variables?
Hi,
I have this piece of code:
tm = local ? localtime(&curr) : gmtime(&curr);
if (!tm) return NULL;
which translates into something like:
----------------------------------------------
entry:
%iftmp.0 = alloca %struct.tm*, align 8
%tm = alloca %struct.tm*, align 8
...
// Declares iftmp.0 as iftmp.0
call void @llvm.dbg.declare( { }* %iftmp.0, { }* bitcast
2013 Nov 18
0
Use of gmtime() in rsync + multi-thread
Hi,
I have a system in which rysnc is being used at multiple times. Since a last 3-4 months we have been observing a crash in rysnc at few instances.
I am not able to find out the solution for the same but while debugging the issue in code I found gmtime() being used in "tls.c". It is not suggested to use this function in a multi-threaded environment.
Version: rsync 2.6.2
2012 Mar 27
0
App. Delisprint hangs on second run
Hi all,
i need to get DelisPrint to work, a programm to print labels for DPD, a German parcel delivery company, for easier delivery.
http://www.dpd.com/de_en/Home/Versand/Informationen-zum-Versand2/Versand-anwendungen/DELISprint
i am using wine 1.4 from the ubuntu ppa, on a fresh updated Ubuntu 11.10 amd64 (see datails information at the bottom). Before i used the official ubuntu 11.10 packages