Skip to content

Releases: Wason1797/QueueAutomator

v0.1.0

23 Oct 18:42
62b242c
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/Wason1797/QueueAutomator/commits/v0.1.0

V0.0.2

03 Jan 23:44
9dd623a
Compare
Choose a tag to compare

What's Changed

  • Fix potential issue with using a dictionary instead of a tuple to keep track of processes per queue

V0.0.1

31 Dec 01:39
3d0419a
Compare
Choose a tag to compare

This is the first release of queue-automator

Features:

  • Create multiprocessing pipelines of any length easily
  • A simple to use decorator API that registers your working functions
from queue_automator import QueueAutomator

# Create an instance of QueueAutomator()
automator = QueueAutomator()

@automator.register_as_worker_function(process_count=2)
def do_work(item: int) -> int:
    sleep(2)
    result = item*2
    return result

if __name__ == '__main__':
    input_data = range(30)

    # Always set your input data before calling .run()
    automator.set_input_data(input_data)
    results = automator.run()
    print(results)