SpatialDays / catapult-workfinder

Tooling to find work to do for common sensing pipelines.
Other
0 stars 0 forks source link

order considered complete when any of the ordered items is done #8

Closed ivica3730k closed 2 years ago

ivica3730k commented 2 years ago

Every item in the order does not need to be completed at the same time. It is unsafe to assume that we can do

    def check_order(self, order_id: str):
        resp = self.espa.call(f'item-status/{order_id}', body={'status': 'complete'})
        logging.info(f"item-status returned: {resp}")
        return len(resp[order_id]) > 0

7e6b8d42-bad8-417e-acf6-e27b5a510a99