seung-lab / python-task-queue

Asynchronous serverless task queue with timed leasing of tasks. Threaded implementations for SQS and local filesystem.
BSD 3-Clause "New" or "Revised" License
36 stars 9 forks source link

redesign(BREAKING): replace useless log_fn with before_fn and after_fn #21

Closed william-silversmith closed 4 years ago

william-silversmith commented 4 years ago

log_fn wasn't working, and it doesn't really make sense to disable the print statements. It does make sense to give access to the task though.

akhileshh commented 4 years ago

looks good, thanks! this should work for the alignment usecase