summaryrefslogtreecommitdiff
path: root/python/skytools
AgeCommit message (Collapse)Author
2014-10-29Merge branch 'master' of https://github.com/markokr/skytools into hotfix/3.2.5martinko
2014-10-27parse_iso_timestamp: handle Z properlyMarko Kreen
2014-10-27moved log msg about script's normal shutdown from BaseScript to DataMaintainermartinko
I think this could be useful to others but it's got to move until a better solution is figured out.
2014-10-06skytools.scripting: minor touchmartinko
2014-07-31BaseScript: added log msg about script's normal shutdownmartinko
2014-04-09moved psycopg2 reference from scripting module to actual script using itmartinko
2014-04-09skytools.scripting: moved psycopg2 import where it belongsmartinko
2014-04-08skytools.timeutil: fixed for Python versions less than 2.7martinko
2014-02-20Merge branch 'master' of https://github.com/markokr/skytools into developmartinko
2014-02-04quote sequence namesAndrew Sackville-West
fixes a bug where _load_elem fails on sequences in schemas that start with non-alpha characters.
2014-02-03Merge branch 'master' of https://github.com/markokr/skytools into developmartinko
Conflicts: debian/changelog
2014-01-30skytools.scripting: allow to specify exception(s) to suppress for a grace periodmartinko
It is possible to provide a list of exception names, or reserved keyword “ALL”.
2014-01-28skytools.scripting: added options to lower log level for exceptionsmartinko
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-28cleaned up, even more robust, added logging, feature inactive by defaultmartinko
2014-01-28made more robust, returns retry count and valid cursormartinko
2014-01-28another iteration from pastmartinko
2014-01-28simple 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-11-06set_tcp_keepalive: simplify, enable win32Marko Kreen
The code got messy, clean it up. Also, seems like Python 2.7+ support SIO_KEEPALIVE_VALS, enable it's usage.
2013-11-05skytools.set_tcp_keepalive: add compat with newer OSXMarko Kreen
Newer OSX has Linux-style TCP_KEEPIDLE/TCP_KEEPCNT socket options, but TCP_KEEPIDLE is missing, instead it has old well-hidden TCP_KEEPALIVE option. So it branches into Linux section and fails there. This patch detects every Linux option separately and uses TCP_KEEPALIVE instead TCP_KEEPIDLE on Darwin. It does expect that Python is compiled against current OSX versions, and headers match running kernel. So if option is defined in 'socket' module, it works. Reported-by: Rob Fowler
2013-09-18Get rid of dictfetch*() usage, it's obsolete.Marko Kreen
2013-07-10Merge branch 'master' of https://github.com/markokr/skytools into developmartinko
2013-07-10Merge branch 'feature/skylog_tnetstrings_via_udp' into developmartinko
2013-06-21set_tcp_keepalive: accept socket object directlyMarko Kreen
2013-06-19Merge remote-tracking branch 'gamato/develop'Marko Kreen
2013-05-26querybuilder: show list of missing arguments on KeyErrorMarko Kreen
2013-04-30skytools.timeutil: make tests more robustMarko Kreen
microsec -> float secs conversion can lose some precision
2013-04-30skytools.skylog: added more fields to UdpTNetStringsHandler log messagemartinko
2013-04-30skytools.skylog: moved hostaddr resolving to module initmartinko
No need to do it per log call as hostname is constant currently.
2013-04-24skytools.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-04-18skytools.skylog: initial implementation of UdpTNetStringsHandlermartinko
2013-04-17parse_pgarray: allow NoneMarko Kreen
2013-04-15python: text fixesmartinko
2013-03-23timeutil.datetime_to_timestamp: new functionMarko Kreen
converts datetime() to posix timestamp.
2013-03-22DBScript.add_connect_string_profile: single place for profile logicMarko Kreen
2013-03-22londiste: connection profilesMarko Kreen
Way to add extra connect string parameters for non-config connection strings (public node locations).
2013-03-20adminscripts: make info commands not use pidfileMarko Kreen
otherwise they conflict with change operations.
2013-03-04loop_delay: let class variable set defaultMarko Kreen
This way it's easier to change default in subclass.
2013-03-01Parse & merge Postgres connect stringsMarko Kreen
2013-02-20skytools.quoting: add more keywordsMarko Kreen
Automatically compare pg-git kwlist.h with our list. New words: cross current_catalog current_schema fetch freeze full ilike inner is isnull join lateral left like natural notnull outer over overlaps right similar variadic verbose window with
2013-02-20Merge pull request #23 from ↵Marko Kreen
reinteractive-open/146bdc280056fcc4cd9bc0385601f03c8c62e01d adding 'authorizations' as a keyword
2013-02-13noisemartinko
2013-01-25skytools.Config: fix the case if filename is missingTarvi Pillessaar
2013-01-15Added pg keyword 'authorization'Glenn Davy
2013-01-14skytools.Config: New default variables.Marko Kreen
config_dir - directory where config is located at config_file - config file itself.
2013-01-14BaseScript: skylog_locations config optionsMarko Kreen
This allows to specify per-script skylog.ini
2013-01-10Fix basescript docstringMarko Kreen
2012-12-31Merge remote-tracking branch 'remotes/marko-github/master'Tarvi Pillessaar
2012-12-20noisemartinko
2012-12-20Clean hashtext.py importsMarko Kreen
2012-12-20Merge remote-tracking branch 'petr/master'Marko Kreen