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
# -*- coding: utf-8 -*- | |
from ftplib import FTP | |
import click | |
from datetime import datetime | |
try: | |
from urllib.parse import urlparse | |
except: | |
from urlparse import urlparse | |
import os |
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 redis | |
r = redis.StrictRedis(host='redis') | |
l = r.keys('rq:job:*') | |
deleted_jobs = 0 | |
total_jobs = len(l) | |
for j in l: | |
if 'dependents' in j: | |
continue | |
print 'Job {}'.format(j) |
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
# -*- coding: utf-8 -*# | |
from erppeek import Client | |
import click | |
from urlparse import urlparse | |
import sys | |
import json | |
from datetime import datetime | |
from dateutil.relativedelta import relativedelta | |
OlderNewer