Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-10-27 | moved log msg about script's normal shutdown from BaseScript to DataMaintainer | martinko | |
I think this could be useful to others but it's got to move until a better solution is figured out. | |||
2014-10-06 | skytools.scripting: minor touch | martinko | |
2014-07-31 | BaseScript: added log msg about script's normal shutdown | martinko | |
2014-04-09 | moved psycopg2 reference from scripting module to actual script using it | martinko | |
2014-04-09 | skytools.scripting: moved psycopg2 import where it belongs | martinko | |
2014-01-30 | skytools.scripting: allow to specify exception(s) to suppress for a grace period | martinko | |
It is possible to provide a list of exception names, or reserved keyword “ALL”. | |||
2014-01-28 | skytools.scripting: added options to lower log level for exceptions | martinko | |
The idea is to suppress error level log messages for a grace period in order not to pollute logs with transient errors that nobody would act upon. | |||
2014-01-28 | cleaned up, even more robust, added logging, feature inactive by default | martinko | |
2014-01-28 | made more robust, returns retry count and valid cursor | martinko | |
2014-01-28 | another iteration from past | martinko | |
2014-01-28 | simple retriable execute (for sql) | martinko | |
the idea is that db calls occasionally break due to transient issues and we’d rather have the calls retried before raising exceptions etc | |||
2013-04-24 | skytools.scripting: more safety in run_func_safely() | martinko | |
Scenario resolved: startup() fails and some variables are never initialised. those are used in overridden send_stats() which is called from generic exception handler in run_func_safely(). thus a new exception is raised that would obscure the original exception raised in startup(). | |||
2013-03-22 | DBScript.add_connect_string_profile: single place for profile logic | Marko Kreen | |
2013-03-22 | londiste: connection profiles | Marko Kreen | |
Way to add extra connect string parameters for non-config connection strings (public node locations). | |||
2013-03-04 | loop_delay: let class variable set default | Marko Kreen | |
This way it's easier to change default in subclass. | |||
2013-02-13 | noise | martinko | |
2013-01-14 | BaseScript: skylog_locations config options | Marko Kreen | |
This allows to specify per-script skylog.ini | |||
2013-01-10 | Fix basescript docstring | Marko Kreen | |
2012-12-17 | Fix exception_hook rash on null query string | Petr Jelinek | |
2012-11-02 | Merge remote-tracking branch 'intgit/master' | Marko Kreen | |
2012-11-02 | Londiste: try to show exact event info on failure. | Marko Kreen | |
This should help debugging replication problems. It does not work on first error, as we batch together a lot of SQL statements, but on retry Londiste start replaying events one-by-one, the the exact event can be spotted. DBScript unnecessarily overrided emsg, drop that. | |||
2012-10-19 | skytools.scripting: added start-up time attribute | martinko | |
2012-10-19 | white noise | martinko | |
2012-10-16 | Allow overrided options with --set to show up in --ini output | Marko Kreen | |
2012-10-04 | skytools.scripting: speed up stat counters | martinko | |
2012-08-04 | skytools.scripting: log config reload, updated comment. | martinko | |
2012-08-04 | skytools.scripting: added support for script __version__ | martinko | |
2012-08-03 | skytools.scripting: added shutdown() to BaseScript | martinko | |
This should be used for cleanup code instead of abusing stop(), which is called from signal handler. | |||
2012-06-15 | BaseScript: write pidfile atomically to avoid corrupt pidfiles. | Marko Kreen | |
2012-06-15 | Move signal_pidfile to 'fileutil' module | Marko Kreen | |
2012-05-25 | signal_pidfile: support sig=0 on win32 | Marko Kreen | |
To avoid pywin32 dependency for such basic functionality, use kernel32.dll via ctypes directly. | |||
2012-05-25 | skytools.UsageError: remove noise word | Marko Kreen | |
2012-05-25 | CascadeAdmin: add node name prefix messages from db | Marko Kreen | |
2012-05-22 | skytools.scripting: catch EINTR from sleep() | Marko Kreen | |
2012-05-22 | skytools.scripting: detect missing signals | Marko Kreen | |
Don't hook signals that are not supported by OS. Needed for win32. | |||
2012-02-10 | basescript: exception_sleep param to configure sleep-on-exception | Marko Kreen | |
2011-12-08 | skytools: seems psycopg2 isolation constants do change | Marko Kreen | |
Psycopg 2.4.2 moved them around. Stop hard-coding them, instead import from psycopg2.externsions Also have a symbol for repeatable read. | |||
2011-12-07 | DBScript: simpler removal of password info | Marko Kreen | |
PG connect strings can be quite free-form. So remove everything after 'password'. | |||
2011-12-07 | Merge remote branch 'martino/master' | Marko Kreen | |
2011-12-07 | Merge branch 'master' of git://github.com/markokr/skytools | Marko Kreen | |
2011-12-07 | skytools.signal_pidfile: ignore empty pidfile, some cleanups | Marko Kreen | |
Empty pidfile can happen if old process failed to write it for some reason. | |||
2011-12-06 | Merge branch 'master' of skype-git:/git/dba/skytools-3 | martinko | |
2011-12-06 | filter potential passwords in connstr before logging it | anti.veeranna | |
2011-12-05 | reworked custom logging init | martinko | |
SkyLogger is no more installed automatically on scripting.py loading, rather exlicitly when our custom getLogger() function is called. | |||
2011-11-29 | skylog: record.name is not jobname anymore | Marko Kreen | |
2011-11-28 | skytools/scripting.py: added new log level TRACE that is below DEBUG level | martinko | |
Added new "debug-2" log level that is intended for finer-grained informational events than DEBUG log level. | |||
2011-11-24 | skytools.scripting: fix fileConfig on python 2.5 | Marko Kreen | |
There is no disable_existing_loggers argument so we need manually enable all loggers again. | |||
2011-11-23 | skytools.BaseScript: fix use_skylog vs. module level loggers. | Marko Kreen | |
We want to support loggers initialized on module import time, but for some reason logging.config.fileConfig() disables all existing loggers by default. Set disable_existing_loggers=False when calling to stop such behaviour. | |||
2011-11-14 | skytools.scripting: datefmt support in logging | martinko | |
2011-11-14 | skytools.BaseScript: .cf_defaults attribute | Marko Kreen | |
This gives simple way to add defaults |