This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param($folder) | |
$arr = @() | |
#function Test-FileLock | |
function Test-FileLock { | |
param ( | |
[parameter(Mandatory=$true)] | |
[string]$Path | |
) | |
$oFile = New-Object System.IO.FileInfo $Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import eventlet.patcher | |
eventlet.patcher.monkey_patch() | |
import eventlet.db_pool | |
import sqlalchemy.orm | |
import sqlalchemy.pool | |
import psycopg2 | |
_ENGINE = None | |
_MAKER = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 2024, in first | |
ret = list(self[0:1]) | |
File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1918, in __getitem__ | |
return list(res) | |
File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 2093, in __iter__ | |
return self._execute_and_instances(context) | |
File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 2106, in _execute_and_instances | |
close_with_result=True) |