I'm creating an app that runs external programs, which produce HTML
reports. These reports are produced outside the static directory, but
I want the user to be able to browse them.
Is there a way I can tell web2py to serve those files like it does
static files? All the links in the HTML files are
ink this is what you are looking for
> :http://web2py.com/book/default/chapter/12#Fetching-an-external-URL
>
> Richard
>
>
>
>
>
>
>
> On Tue, Nov 1, 2011 at 3:08 PM, John Duddy wrote:
> > I'm creating an app that runs external programs, which produce HTML
Unfortunately, no. I might be able to create soft links under static
to those directories, making up a guid each time for the name. I was
hoping for a more elegant solution.
On Nov 1, 12:42 pm, Anthony wrote:
> On Tuesday, November 1, 2011 3:08:10 PM UTC-4, John Duddy wrote:
>
> >
These files can appear ANYWHERE on the file system. I do not know in
advance, as the user can add directories for the input (and output)
data at runtime via configuration. So, I need a fully dynamic solution
that I can tweak programmatically at runtime.
Your solution (creating links under a path s
:54 pm, Anthony wrote:
> On Tuesday, November 1, 2011 5:48:12 PM UTC-4, John Duddy wrote:
>
> > Unfortunately, no. I might be able to create soft links under static
> > to those directories, making up a guid each time for the name. I was
> > hoping for a more elegant so
That's cool - I'll definitely consider it. Thanks!
On Nov 2, 10:03 am, ~redShadow~ wrote:
> On Wed, 2011-11-02 at 09:25 -0700, John Duddy wrote:
> > Certainly there is s simpler way to talk to an already running
> > instance of rocket (mine) and tell it to serve more
I have a config table, and I query for values like this from a cron
program:
db(db.config.name=='api_key').select(db.config.value).first().value
This query always returns the same value, even after I change it via
the admin app's database editor.
Is the DAL doing some sort of caching? Is there a
I think you may have nailed it - my cron does run continuously.
I always commit my transactions. Do you know how to force it to reset
manually?
On Nov 16, 9:17 pm, nick name wrote:
> Does your cron program run continuously? what database are you using?
>
> If you are using a database that suppor
This solved it (in models/db.py):
db.executesql('SET SESSION TRANSACTION ISOLATION LEVEL READ
COMMITTED;')
Muchas gracias, nick
On Nov 17, 12:09 pm, John Duddy wrote:
> I think you may have nailed it - my cron does run continuously.
>
> I always commit my transactions.
I'm getting the following stack trace in my console after leaving my
app running overnight. We use cron for several tasks.
I saw the below thread, which indicated that the issue has been
resolved:
http://groups.google.com/group/web2py/browse_thread/thread/e788b0783e8fc758/6a210abb2898763d?lnk=rao
starting a lot of cron tasks that do not terminate before the
> next one starts?
> I suggest you use a background process and do not use cron. To my
> knowledge there is no bug but cron become unpredictable if jobs take
> too long.
>
>
> Massimo
>
>
> On Jul 5, 10:3
).
These processes never exit.
lsof shows the normal cacaphony of open files, lots of stuff under
python2.7, a few shared libs & pipes, cron.master, and a deleted file in /
tmp. <http://tmp.cd>
Any ideas on how to track this down?
On Tue, Jul 5, 2011 at 12:47 PM, John Duddy wrote:
> I a
t; > be possible to make a single script that just runs the 3 scripts
> > sequentially and use that as your cron script. Do the scripts access the
> > database and the database happens to be SQLite which locks for the
> duration
> > of an access/
> >
> > Without seeing some code and more details determining the cause is a
> guess.
> >
> > Ron
>
--
John Duddy
jdu...@gmail.com
h also cannot be cleaned up.
>
> Are you running on Linux? If so the /proc/pid_of_web2py/fd directory using ls
> -l will show you what files by name are open to the process which might
> provide some clues to which part of your code.
>
--
John Duddy
jdu...@gmail.com
I'd like to use a cron job running with @reboot to process a queue.
What I want in the queue are the names of modules & functions to call,
and a time to call them.
Here's the catch - I'd like the functions in the queue to be in a
controller.
Here's where I execute (next is the row with the task q
15 matches
Mail list logo