summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
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-04-09moved psycopg2 reference from scripting module to actual script using itmartinko
2014-02-18scripts/data_maintainer.py: fixed to survive null in stats column of sql_modifymartinko
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-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-12-18scripts/data_maintainer.py: fixesmartinko
2013-12-17scripts/data_maintainer.py: latest code cleanupmartinko
2013-12-01DataMaintainer can use csv file as source.Petr Jelinek
2013-10-07scripts/data_maintainer.py: cleaned upmartinko
2013-10-03scripts/data_maintainer.py: added dynamic throttling support (via sql)martinko
2013-10-02scripts/data_maintainer.py: clean-upmartinko
2013-09-18Get rid of dictfetch*() usage, it's obsolete.Marko Kreen
2013-07-02Add consumer_filter option to simple_local_consumer.Petr Jelinek
2013-06-19Merge remote-tracking branch 'gamato/develop'Marko Kreen
2013-04-18scripts/data_maintainer.py: added suffix "3" to service namemartinko
2013-04-17grantfu: 2-pass processingMarko Kreen
First revokes, then grants. This supports one-object-in-several-sections situation. Although that is bad style and better avoided, current behavour results in unobvious breakage.
2013-03-04data_maintainer: better way to handle .looping and .loop_delayMarko Kreen
2013-03-04scripts/data_maintainer.py: fixesmartinko
2013-02-28scripts: sweeping change to postpone log string formattingmartinko
2013-02-28scripts/data_maintainer.py: updatedmartinko
2013-02-28scripts/data_maintainer.py: imported from skytools 2.0martinko
2013-02-27Merge branch 'master' of https://github.com/markokr/skytoolsmartinko
2013-02-27scripts: fixed shebang linemartinko
2013-01-29scriptmgr: fix copy-paste error in full_pathMarko Kreen
2013-01-25skytools_upgrae: make force option work properlyTarvi Pillessaar
2013-01-23skytools_upgrade: add force optionTarvi Pillessaar
2013-01-21scriptmgr: give -nH args to sudoMarko Kreen
2013-01-20scriptmgr: fix ~ expansionMarko Kreen
2013-01-18scriptmgr: user= supportMarko Kreen
Daemon sections can now have user= option. It makes scriptmgr launch (and kill) daemons with sudo -u $user.
2012-09-12scripts: changed queue_mover and queue_splitter service_nameTarvi Pillessaar
2012-07-26scripts/skytools_upgrade.py: added "dry run" option and updated manual pagemartinko
--not-really:: Don't actually do anything.
2012-07-25scripts/scriptmgr.py: status command can optionally be more selectivemartinko
2012-07-24scripts/scriptmgr.py: added option for specifying service typemartinko
-t SVC, --type=SVC apply command to all jobs of this service type
2012-07-18find_sql_functions: grep sql function signatures.Marko Kreen
Dumb parser, but works on skytools modules.
2012-07-18simple_consumer: sync with simple_local_consumer changesMarko Kreen
2012-07-18simple_local_consumer: function caller based on LocalConsumerMarko Kreen
Consumer that runs a SQL for each event.
2012-05-17skytools_upgrade: fix special casesMarko Kreen
2012-05-15skytools_upgrade: show old version before upgradeMarko Kreen
2012-05-10Include simple_consumer scriptMarko Kreen
Quick event processing by simply launching SQL query for each event. Forward-ported-by: Juta Vaks
2012-05-10Group-access roles for SQL functions (draft)Marko Kreen
This is attempt for fine-grained access rights for all Skytools SQL schemas. As it still needs review, the rights are not activated by default, instead following sql files are generated: newgrants_<schema>.sql - applies new rights, drop old public access oldgrants_<schema>.sql - restores old rights - public execute privilege to all functions Only thing that is active by default is creation of new groups in upgrade functions. New access roles: pgq_reader Can consume queues (source-side) pgq_writer Can write into queues (source-side / dest-side) Can use pgq_node/pgq_ext schema as regular consumer (dest-side) pgq_admin Admin operations on queues, required for CascadedWorker on dest-side. Member of pgq_reader and pgq_writer. londiste_reader Member of pgq_reader, needs additional read access to tables. (source-side) londiste_writer Member of pgq_admin, needs additional write access to tables. (dest-side)
2011-11-29sql upgrade cleanupMarko Kreen
- use 'structure/upgrade.sql' to generate X.upgrade.sql - add pgq_ext to upgraded schemas - move non-standard upgrade scripts to extra/ - setup_skytools: build sql files in 'build' target, not always - pgq_ext.version: bump ver to 3.0.0.1
2011-11-29skytools_upgrade: if schema too old, stop touching itMarko Kreen
2011-11-25skytools_upgrade: support 3.0-upgrades, walk databasesMarko Kreen
2011-11-08scripts/scriptmgr.py: added --wait optionmartinko
The new option will make ScriptMgr to wait for all jobs to finish their processing. This applies to both "stop" and "restart" commands. Btw, restarting should be (much) faster now.
2011-11-08scriptmgr.py: fix small logging bugmartinko
2011-09-07scripts/scriptmgr.py: ignoring stale pid files when starting scriptsmartinko
2010-08-31scripts/: conform with new -ini standard.Marko Kreen
Each script should define only its own config vars.
2009-11-04skytools_upgrade: add missing importMarko Kreen
2009-06-07pkgloader module to be able to coexist with 2.xMarko Kreen
Use scheme that pygtk uses to support parallel installations: import pkgloader pkgloader.require('skytools', '3.0') import skytools This will allow keeping old module installed by default and new version is used only by request.