Search is not available for this dataset
id
stringlengths
1
8
text
stringlengths
72
9.81M
addition_count
int64
0
10k
commit_subject
stringlengths
0
3.7k
deletion_count
int64
0
8.43k
file_extension
stringlengths
0
32
lang
stringlengths
1
94
license
stringclasses
10 values
repo_name
stringlengths
9
59
10034650
<NME> queue_info.py <BEF> """Get information of queues. We can have different ways of getting queue information, e.g., from Zookeeper, from hardcoded data, from config file, ... Thus, we need to extend the base class QueueInfoBase for different implementations and use the right implementation in different cases. """...
1
Use yaml.safe_load
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034651
<NME> queue_info.py <BEF> """Get information of queues. We can have different ways of getting queue information, e.g., from Zookeeper, from hardcoded data, from config file, ... Thus, we need to extend the base class QueueInfoBase for different implementations and use the right implementation in different cases. """...
1
Use yaml.safe_load
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034652
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Merge pull request #58 from Nextdoor/pin-setuptools
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034653
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Merge pull request #58 from Nextdoor/pin-setuptools
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034654
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Major version change due to API argument name changes.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034655
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Major version change due to API argument name changes.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034656
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean multiprocessing PACKAGE = 'nd-kale' __version__ = None execfile(...
2
Clean up README.md and setup.py.
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034657
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean multiprocessing PACKAGE = 'nd-kale' __version__ = None execfile(...
2
Clean up README.md and setup.py.
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034658
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup PACKAGE = 'ndkale' __version__ = Non...
2
Revert all multiprocessing changes.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034659
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup PACKAGE = 'ndkale' __version__ = Non...
2
Revert all multiprocessing changes.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034660
<NME> default_settings.py <BEF> """Default settings for kale.""" from __future__ import absolute_import import os import pickle import platform import time import zlib import six # The default settings are inadequate for actual use # due to the need for a queue. When the settings are # overridden this will be set to...
4
improve clarity of comments
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034661
<NME> default_settings.py <BEF> """Default settings for kale.""" from __future__ import absolute_import import os import pickle import platform import time import zlib import six # The default settings are inadequate for actual use # due to the need for a queue. When the settings are # overridden this will be set to...
4
improve clarity of comments
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034662
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import resource import signal import sys import time from kale import consumer from kale import publisher from kale import queue_info from kale import settings from kale im...
85
Merge pull request #18 from Nextdoor/fix_races
57
.py
py
bsd-2-clause
Nextdoor/ndkale
10034663
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import resource import signal import sys import time from kale import consumer from kale import publisher from kale import queue_info from kale import settings from kale im...
85
Merge pull request #18 from Nextdoor/fix_races
57
.py
py
bsd-2-clause
Nextdoor/ndkale
10034664
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
2
Merge pull request #14 from swaggy/refactor_is_multiprocessing_mode
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034665
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
2
Merge pull request #14 from swaggy/refactor_is_multiprocessing_mode
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034666
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Merge pull request #2 from gabend/app_data
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034667
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Merge pull request #2 from gabend/app_data
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034668
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Bump pycryptodome from 3.6.1 to 3.6.6
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034669
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Bump pycryptodome from 3.6.1 to 3.6.6
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034670
<NME> publisher.py <BEF> from __future__ import absolute_import from __future__ import print_function import argparse from taskworker import tasks if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('n', type=int, default=10, help='The input of fibonacci...
1
Merge pull request #4 from gabend/gabend-app_data-doc
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034671
<NME> publisher.py <BEF> from __future__ import absolute_import from __future__ import print_function import argparse from taskworker import tasks if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('n', type=int, default=10, help='The input of fibonacci...
1
Merge pull request #4 from gabend/gabend-app_data-doc
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034672
<NME> test_queue_selector.py <BEF> """Tests queue_selector.py""" from __future__ import absolute_import import unittest from kale import queue_info from kale import queue_selector class MultiQueueInfo(queue_info.QueueInfoBase): def get_queues(self): return [queue_info.TaskQueue(name='queue1', priority=1...
5
Merge pull request #23 from robnextdoor2/rob_sqs_throttle
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034673
<NME> test_queue_selector.py <BEF> """Tests queue_selector.py""" from __future__ import absolute_import import unittest from kale import queue_info from kale import queue_selector class MultiQueueInfo(queue_info.QueueInfoBase): def get_queues(self): return [queue_info.TaskQueue(name='queue1', priority=1...
5
Merge pull request #23 from robnextdoor2/rob_sqs_throttle
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034674
<NME> .travis.yml <BEF> language: python dist: xenial python: - "2.7" - "3.5" - "3.6" - "3.7" before_install: # TravisCI has a global boto config that looks for a GCP plugin that we are not installing. - export BOTO_CONFIG=/dev/null install: - pip install pycryptodome==3.6.1 - python setup.py install...
16
Merge pull request #41 from Nextdoor/feature/update_pypideploy
20
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034675
<NME> .travis.yml <BEF> language: python dist: xenial python: - "2.7" - "3.5" - "3.6" - "3.7" before_install: # TravisCI has a global boto config that looks for a GCP plugin that we are not installing. - export BOTO_CONFIG=/dev/null install: - pip install pycryptodome==3.6.1 - python setup.py install...
16
Merge pull request #41 from Nextdoor/feature/update_pypideploy
20
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034676
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Merge pull request #59 from Nextdoor/version-bump-2-0-3
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034677
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Merge pull request #59 from Nextdoor/version-bump-2-0-3
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034678
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
37
Ensure the delay happens with or without incrementing the failure count.
7
.py
py
bsd-2-clause
Nextdoor/ndkale
10034679
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
37
Ensure the delay happens with or without incrementing the failure count.
7
.py
py
bsd-2-clause
Nextdoor/ndkale
10034680
<NME> .travis.yml <BEF> language: python dist: xenial python: - "2.7" - "3.5" - "3.6" - "3.7" before_install: # TravisCI has a global boto config that looks for a GCP plugin that we are not installing. - export BOTO_CONFIG=/dev/null install: - pip install pycryptodome==3.6.1 - python setup.py install...
16
Update pypi secret
20
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034681
<NME> .travis.yml <BEF> language: python dist: xenial python: - "2.7" - "3.5" - "3.6" - "3.7" before_install: # TravisCI has a global boto config that looks for a GCP plugin that we are not installing. - export BOTO_CONFIG=/dev/null install: - pip install pycryptodome==3.6.1 - python setup.py install...
16
Update pypi secret
20
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034682
<NME> message.py <BEF> """Custom message type for SQS messages.""" from __future__ import absolute_import import pickle import six from kale import crypt from kale import exceptions from kale import settings from kale import utils _compressor = settings.COMPRESSOR _decompressor = settings.DECOMPRESSOR _task_size_li...
1
Add setting to specify pickle protocol
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034683
<NME> message.py <BEF> """Custom message type for SQS messages.""" from __future__ import absolute_import import pickle import six from kale import crypt from kale import exceptions from kale import settings from kale import utils _compressor = settings.COMPRESSOR _decompressor = settings.DECOMPRESSOR _task_size_li...
1
Add setting to specify pickle protocol
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034684
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Merge pull request #55 from Nextdoor/dependabot/pip/pycryptodome-3.6.6
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034685
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Merge pull request #55 from Nextdoor/dependabot/pip/pycryptodome-3.6.6
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034686
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
1
Get delay sec from kwargs
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034687
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
1
Get delay sec from kwargs
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034688
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
2
Add some tests for app_data
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034689
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
2
Add some tests for app_data
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034690
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
3
Migrate to boto3 (#44)
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034691
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
3
Migrate to boto3 (#44)
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034692
<NME> README.md <BEF> # Kale: Distributed task worker from Nextdoor [![Build Status](https://travis-ci.org/Nextdoor/ndkale.svg?branch=master)](https://travis-ci.org/Nextdoor/ndkale) Kale is a python task worker library that supports priority queues on Amazon SQS. Check out our blog post - [Nextdoor Taskworker: Simp...
1
Update README.md
0
.md
md
bsd-2-clause
Nextdoor/ndkale
10034693
<NME> README.md <BEF> # Kale: Distributed task worker from Nextdoor [![Build Status](https://travis-ci.org/Nextdoor/ndkale.svg?branch=master)](https://travis-ci.org/Nextdoor/ndkale) Kale is a python task worker library that supports priority queues on Amazon SQS. Check out our blog post - [Nextdoor Taskworker: Simp...
1
Update README.md
0
.md
md
bsd-2-clause
Nextdoor/ndkale
10034694
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Bump version to 2.24
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034695
<NME> version.py <BEF> # Copyright 2015 Nextdoor.com, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
1
Bump version to 2.24
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034696
<NME> .travis.yml <BEF> language: python dist: xenial python: - '2.7' - '3.5' secure: "CFbLgwgs4M0yROBMl0vrUF3ELkR85CRQm1s9IzOAroHFxLqBPHsm7ofVzmS+1pYqTTJunJiVUD0655AdnlbyO9x8T0exlcDowlwgTnAMozSlJo72B1mjdqZW26+VIgGcPiZiB3iRBJcOiONOPKo04SzS4EG8jdP+JBc2IwS6VtQ=" secure: "j8x37uSIozGhdCEyWXonOIK9MDalFwxfhavUQAnEh4...
0
Simplify travis config (#61)
2
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034697
<NME> .travis.yml <BEF> language: python dist: xenial python: - '2.7' - '3.5' secure: "CFbLgwgs4M0yROBMl0vrUF3ELkR85CRQm1s9IzOAroHFxLqBPHsm7ofVzmS+1pYqTTJunJiVUD0655AdnlbyO9x8T0exlcDowlwgTnAMozSlJo72B1mjdqZW26+VIgGcPiZiB3iRBJcOiONOPKo04SzS4EG8jdP+JBc2IwS6VtQ=" secure: "j8x37uSIozGhdCEyWXonOIK9MDalFwxfhavUQAnEh4...
0
Simplify travis config (#61)
2
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034698
<NME> test_queue_selector.py <BEF> """Tests queue_selector.py""" from __future__ import absolute_import import unittest from kale import queue_info from kale import queue_selector class MultiQueueInfo(queue_info.QueueInfoBase): def get_queues(self): return [queue_info.TaskQueue(name='queue1', priority=1...
5
Handle some SQS throttling more gracefully.
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034699
<NME> test_queue_selector.py <BEF> """Tests queue_selector.py""" from __future__ import absolute_import import unittest from kale import queue_info from kale import queue_selector class MultiQueueInfo(queue_info.QueueInfoBase): def get_queues(self): return [queue_info.TaskQueue(name='queue1', priority=1...
5
Handle some SQS throttling more gracefully.
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034700
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Merge pull request #20 from Nextdoor/use_pycryptodome
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034701
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
Merge pull request #20 from Nextdoor/use_pycryptodome
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034702
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import signal import sys import time from six.moves import range from kale import consumer from kale import publisher from kale import queue_info from kale import settings...
1
Another fairly noisy log statement.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034703
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import signal import sys import time from six.moves import range from kale import consumer from kale import publisher from kale import queue_info from kale import settings...
1
Another fairly noisy log statement.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034704
<NME> task.py <BEF> """Module containing the base class for tasks.""" from __future__ import absolute_import import logging import time import uuid from kale import exceptions from kale import publisher from kale import settings logger = logging.getLogger(__name__) PERMANENT_FAILURE_UNRECOVERABLE = 'unrecoverable' ...
4
Don't check is_memory_ok if timed out, since it might be hanging.
5
.py
py
bsd-2-clause
Nextdoor/ndkale
10034705
<NME> task.py <BEF> """Module containing the base class for tasks.""" from __future__ import absolute_import import logging import time import uuid from kale import exceptions from kale import publisher from kale import settings logger = logging.getLogger(__name__) PERMANENT_FAILURE_UNRECOVERABLE = 'unrecoverable' ...
4
Don't check is_memory_ok if timed out, since it might be hanging.
5
.py
py
bsd-2-clause
Nextdoor/ndkale
10034706
<NME> message.py <BEF> """Custom message type for SQS messages.""" from __future__ import absolute_import import pickle import six from kale import crypt from kale import exceptions from kale import settings from kale import utils _compressor = settings.COMPRESSOR _decompressor = settings.DECOMPRESSOR _task_size_li...
1
Merge pull request #29 from Nextdoor/pickle_protocol
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034707
<NME> message.py <BEF> """Custom message type for SQS messages.""" from __future__ import absolute_import import pickle import six from kale import crypt from kale import exceptions from kale import settings from kale import utils _compressor = settings.COMPRESSOR _decompressor = settings.DECOMPRESSOR _task_size_li...
1
Merge pull request #29 from Nextdoor/pickle_protocol
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034708
<NME> queue_info.py <BEF> """Get information of queues. We can have different ways of getting queue information, e.g., from Zookeeper, from hardcoded data, from config file, ... Thus, we need to extend the base class QueueInfoBase for different implementations and use the right implementation in different cases. """...
1
Merge pull request #40 from Nextdoor/dkern-use-safe-load
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034709
<NME> queue_info.py <BEF> """Get information of queues. We can have different ways of getting queue information, e.g., from Zookeeper, from hardcoded data, from config file, ... Thus, we need to extend the base class QueueInfoBase for different implementations and use the right implementation in different cases. """...
1
Merge pull request #40 from Nextdoor/dkern-use-safe-load
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034710
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
6
Add failure_num to tests
5
.py
py
bsd-2-clause
Nextdoor/ndkale
10034711
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
6
Add failure_num to tests
5
.py
py
bsd-2-clause
Nextdoor/ndkale
10034712
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
0
Remove flake8 dependency.
3
.py
py
bsd-2-clause
Nextdoor/ndkale
10034713
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
0
Remove flake8 dependency.
3
.py
py
bsd-2-clause
Nextdoor/ndkale
10034714
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
use pycryptodome instead of pycrypto
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034715
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
1
use pycryptodome instead of pycrypto
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034716
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
add trove classifiers for python3
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034717
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
add trove classifiers for python3
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034718
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import resource import signal import sys import time from kale import consumer from kale import publisher from kale import queue_info from kale import settings from kale im...
9
Fixes the memory usage check on OSX.
9
.py
py
bsd-2-clause
Nextdoor/ndkale
10034719
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import resource import signal import sys import time from kale import consumer from kale import publisher from kale import queue_info from kale import settings from kale im...
9
Fixes the memory usage check on OSX.
9
.py
py
bsd-2-clause
Nextdoor/ndkale
10034720
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
Merge pull request #8 from mrterry/trove
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034721
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
Merge pull request #8 from mrterry/trove
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034722
<NME> .travis.yml <BEF> language: python env: global: # pypi api token split in 2 because of travisci issue https://travis-ci.community/t/travis-encrypt-data-too-large-for-pypi-tokens-with-older-repos/5792/5 - "3.5" install: - python setup.py install - pip freeze before_install: - export BOTO_CONFIG=/dev/...
1
Install a version of pycryptodome that doesn't seg fault
0
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034723
<NME> .travis.yml <BEF> language: python env: global: # pypi api token split in 2 because of travisci issue https://travis-ci.community/t/travis-encrypt-data-too-large-for-pypi-tokens-with-older-repos/5792/5 - "3.5" install: - python setup.py install - pip freeze before_install: - export BOTO_CONFIG=/dev/...
1
Install a version of pycryptodome that doesn't seg fault
0
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034724
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
Pin markupsafe.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034725
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
Pin markupsafe.
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034726
<NME> .travis.yml <BEF> language: python python: - "2.7" install: - python setup.py install - pip freeze before_script: - python setup.py flake8 script: python setup.py test install: - python setup.py install - pip freeze before_script: - pip install flake8 && flake8 kale example --max-line-length 100 --ignore=...
4
Add whitespaces to travis yaml file
0
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034727
<NME> .travis.yml <BEF> language: python python: - "2.7" install: - python setup.py install - pip freeze before_script: - python setup.py flake8 script: python setup.py test install: - python setup.py install - pip freeze before_script: - pip install flake8 && flake8 kale example --max-line-length 100 --ignore=...
4
Add whitespaces to travis yaml file
0
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034728
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
2
Refactor run_single, run_multi, is_multiprocess_mode
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034729
<NME> test_task.py <BEF> """Module testing the kale.task module.""" from __future__ import absolute_import import mock import unittest from kale import exceptions from kale import task from kale import test_utils from six.moves import range class TaskFailureTestCase(unittest.TestCase): """Test handle_failure l...
2
Refactor run_single, run_multi, is_multiprocess_mode
2
.py
py
bsd-2-clause
Nextdoor/ndkale
10034730
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import resource import signal import sys import time from kale import consumer from kale import publisher from kale import queue_info from kale import settings from kale im...
9
Merge pull request #27 from Nextdoor/rob_osx_memory_check
9
.py
py
bsd-2-clause
Nextdoor/ndkale
10034731
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import resource import signal import sys import time from kale import consumer from kale import publisher from kale import queue_info from kale import settings from kale im...
9
Merge pull request #27 from Nextdoor/rob_osx_memory_check
9
.py
py
bsd-2-clause
Nextdoor/ndkale
10034732
<NME> README.md <BEF> # Kale: Distributed task worker from Nextdoor ![Apache](https://img.shields.io/hexpm/l/plug.svg) Kale is a python task worker library that supports priority queues on Amazon SQS. We have a blog post on Kale: [http://tmblr.co/ZZM89v1O9x1RI](http://tmblr.co/ZZM89v1O9x1RI) ## How does it work? ...
1
Update blog link.
1
.md
md
bsd-2-clause
Nextdoor/ndkale
10034733
<NME> README.md <BEF> # Kale: Distributed task worker from Nextdoor ![Apache](https://img.shields.io/hexpm/l/plug.svg) Kale is a python task worker library that supports priority queues on Amazon SQS. We have a blog post on Kale: [http://tmblr.co/ZZM89v1O9x1RI](http://tmblr.co/ZZM89v1O9x1RI) ## How does it work? ...
1
Update blog link.
1
.md
md
bsd-2-clause
Nextdoor/ndkale
10034734
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import signal import sys import time from six.moves import range from kale import consumer from kale import publisher from kale import queue_info from kale import settings...
36
Merge pull request #28 from Nextdoor/refactor
26
.py
py
bsd-2-clause
Nextdoor/ndkale
10034735
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import signal import sys import time from six.moves import range from kale import consumer from kale import publisher from kale import queue_info from kale import settings...
36
Merge pull request #28 from Nextdoor/refactor
26
.py
py
bsd-2-clause
Nextdoor/ndkale
10034736
<NME> test_message.py <BEF> """Module testing the kale.message module.""" from __future__ import absolute_import import unittest from kale import message from kale import task import mock def _time_function(): return 123 def _get_publisher_data(): return 'test_publisher' class MessageTestCase(unittest....
2
Separate task failure num from task retry num so that we can delay by the retry num which always increments, but permanently fail by the failure num which can be overridden to not increment.
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034737
<NME> test_message.py <BEF> """Module testing the kale.message module.""" from __future__ import absolute_import import unittest from kale import message from kale import task import mock def _time_function(): return 123 def _get_publisher_data(): return 'test_publisher' class MessageTestCase(unittest....
2
Separate task failure num from task retry num so that we can delay by the retry num which always increments, but permanently fail by the failure num which can be overridden to not increment.
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034738
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import signal import sys import time from six.moves import range from kale import consumer from kale import publisher from kale import queue_info from kale import settings...
7
Pull out individual run method to all customization
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034739
<NME> worker.py <BEF> """Module for running the worker process. It's an infinite loop. """ from __future__ import absolute_import import logging import signal import sys import time from six.moves import range from kale import consumer from kale import publisher from kale import queue_info from kale import settings...
7
Pull out individual run method to all customization
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034740
<NME> README.md <BEF> # Kale: Distributed task worker from Nextdoor ![Apache](https://img.shields.io/hexpm/l/plug.svg) [![Build Status](https://travis-ci.org/Nextdoor/ndkale.svg?branch=master)](https://travis-ci.org/Nextdoor/ndkale) Kale is a python task worker library that supports priority queues on Amazon SQS. ...
2
Update README.md
2
.md
md
bsd-2-clause
Nextdoor/ndkale
10034741
<NME> README.md <BEF> # Kale: Distributed task worker from Nextdoor ![Apache](https://img.shields.io/hexpm/l/plug.svg) [![Build Status](https://travis-ci.org/Nextdoor/ndkale.svg?branch=master)](https://travis-ci.org/Nextdoor/ndkale) Kale is a python task worker library that supports priority queues on Amazon SQS. ...
2
Update README.md
2
.md
md
bsd-2-clause
Nextdoor/ndkale
10034742
<NME> task.py <BEF> """Module containing the base class for tasks.""" from __future__ import absolute_import import logging import time import uuid from kale import exceptions from kale import publisher from kale import settings logger = logging.getLogger(__name__) PERMANENT_FAILURE_UNRECOVERABLE = 'unrecoverable' ...
14
Let apps add their own app_data to tasks.
9
.py
py
bsd-2-clause
Nextdoor/ndkale
10034743
<NME> task.py <BEF> """Module containing the base class for tasks.""" from __future__ import absolute_import import logging import time import uuid from kale import exceptions from kale import publisher from kale import settings logger = logging.getLogger(__name__) PERMANENT_FAILURE_UNRECOVERABLE = 'unrecoverable' ...
14
Let apps add their own app_data to tasks.
9
.py
py
bsd-2-clause
Nextdoor/ndkale
10034744
<NME> .travis.yml <BEF> language: python env: global: # pypi api token split in 2 because of travisci issue https://travis-ci.community/t/travis-encrypt-data-too-large-for-pypi-tokens-with-older-repos/5792/5 secure: "CFbLgwgs4M0yROBMl0vrUF3ELkR85CRQm1s9IzOAroHFxLqBPHsm7ofVzmS+1pYqTTJunJiVUD0655AdnlbyO9x8T0exl...
1
Merge pull request #56 from teeparham/patch-1
1
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034745
<NME> .travis.yml <BEF> language: python env: global: # pypi api token split in 2 because of travisci issue https://travis-ci.community/t/travis-encrypt-data-too-large-for-pypi-tokens-with-older-repos/5792/5 secure: "CFbLgwgs4M0yROBMl0vrUF3ELkR85CRQm1s9IzOAroHFxLqBPHsm7ofVzmS+1pYqTTJunJiVUD0655AdnlbyO9x8T0exl...
1
Merge pull request #56 from teeparham/patch-1
1
.yml
travis
bsd-2-clause
Nextdoor/ndkale
10034746
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
Publish to pypi when we cut a release (#35)
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034747
<NME> setup.py <BEF> #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import multiprocessing # To make python setup.py test happy import os import shutil import subprocess from distutils.command.clean import clean from setuptools import setup multiprocessing PACKAGE = 'ndkale' ...
2
Publish to pypi when we cut a release (#35)
0
.py
py
bsd-2-clause
Nextdoor/ndkale
10034748
<NME> publisher.py <BEF> from __future__ import absolute_import from __future__ import print_function import argparse from taskworker import tasks if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('n', type=int, default=10, help='The input of fibonacci...
1
Update example for app_data
1
.py
py
bsd-2-clause
Nextdoor/ndkale
10034749
<NME> publisher.py <BEF> from __future__ import absolute_import from __future__ import print_function import argparse from taskworker import tasks if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('n', type=int, default=10, help='The input of fibonacci...
1
Update example for app_data
1
.py
py
bsd-2-clause
Nextdoor/ndkale