AdamJSc / delivery-slot-checker

Monitors the availability of UK supermarket Home Delivery slots and issues an SMS with details.
2 stars 1 forks source link

feature/parallelise-postcode-searches #3

Closed AdamJSc closed 4 years ago

AdamJSc commented 4 years ago

The purpose of this change is to shift the focus from Jobs to Tasks in terms of maintaining state, configuration, execution and monitoring.

This enables multiple Task Payloads to be associated with a single Job. The Job's Task function can then be run multiple times, taking in a different Payload each time.

Each Payload now becomes the single unit that we wish to maintain state for independently, rather than the Job.

Each Task-Payload combination can now be executed concurrently, in parallel to the other Task-Payload combinations within the same Job, as well as any other Jobs.

Other changes include: