WangYihang / gojob

Go(od) Job is a simple job scheduler that supports task retries, logging, and task sharding.
MIT License
10 stars 1 forks source link

primary update of the Task interface with context #10

Closed emar-kar closed 3 months ago

emar-kar commented 4 months ago

Closes #6

This update adds a breaking change, by adding context to Do function of the Task interface. It does not cover all possible usages and improvements, which can be achieved with context, but it's the start

UPD: build is failing on examples, which do not have context. I'd prefer to update them in different PR, if you don't mind.

WangYihang commented 4 months ago

Being a bit busy today, I will leave comment on your issue and comments soon. Thanks for your contributions.