Skip to content

Instantly share code, notes, and snippets.

@yoyosan
Last active November 8, 2018 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoyosan/29b088228b29f7dcf2da880264d9632d to your computer and use it in GitHub Desktop.
Save yoyosan/29b088228b29f7dcf2da880264d9632d to your computer and use it in GitHub Desktop.
dispatcher output

F                                                                   1 / 1 (100%)

Time: 2.52 seconds, Memory: 34.00MB

There was 1 failure:

1) Tests\Unit\Dispatcher\Engine\BatchingTest::batching_selects_the_closest_order_to_the_current_one
Failed asserting that 255 matches expected 251.

/nfs/docroot/jenkins/lib/jobs/caronte-branch/workspace/tests/Unit/Dispatcher/Engine/BatchingTest.php:455

FAILURES!
Tests: 1, Assertions: 2, Failures: 1.
[2018-11-08 19:31:21] GroupEngine.DEBUG: SQL query {"query":"select `order`.*, `customer`.`area` from `order` inner join `customer` on `customer`.`id` = `order`.`customer_id` where (`status` = 200 or (`fulfillment_type` = 3 and `status` = 300 and `courier_id` = 1 and `picker_id` is not null)) and `deleted` =  and `deliver_at_start` >= 2018-11-08 22:00:00 and `deliver_at_start` < 2018-11-08 23:00:00 and ((`discount_code` is null or `discount_code` not in (SUPERSUPER, SCONTO20, SUPERFRIGO)) and not exists (select * from `customer` where `order`.`customer_id` = `customer`.`id` and `customer`.`ref_id` in (0000782365, 0000819843, 0000526264, 0000289676, 0000157532, 0000729203, 0001039961, 0000032568)))"} 
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] GroupEngine.DEBUG: Taken group of orders {"fulfillmentType":1,"orders group":[{"253":{"volume":150,"delivery start":"2018-11-08 22:00:00","cdp":1966,"store":113}},{"255":{"volume":800,"delivery start":"2018-11-08 22:00:00","cdp":1964,"store":113}},{"251":{"volume":90,"delivery start":"2018-11-08 22:00:00","cdp":1876,"store":113}}]} 
[2018-11-08 19:31:21] FilterEngine.DEBUG: -------------------------------------------------- Start --------------------------------------------------  
[2018-11-08 19:31:21] FilterEngine.DEBUG: Constructor {"order id":253,"excluded courier ids":[]} 
[2018-11-08 19:31:21] FilterEngine.DEBUG: Temporarily assigned couriers. {"assigned couriers":[]} 
[2018-11-08 19:31:21] FilterEngine.DEBUG: Found couriers. {"couriers details":[{"351":{"vehicle capacity":1000}}]} 
[2018-11-08 19:31:21] FilterEngine.DEBUG: --------------------------------------------------- End ---------------------------------------------------  
[2018-11-08 19:31:21] ScoringEngine.DEBUG: -------------------------------------------------- Start --------------------------------------------------  
[2018-11-08 19:31:21] ScoringEngine.DEBUG: Couriers scores {"courier details":[{"351":{"vehicle to order":20,"proximity":6,"total":26}}]} 
[2018-11-08 19:31:21] ScoringEngine.DEBUG: --------------------------------------------------- End ---------------------------------------------------  
[2018-11-08 19:31:21] BatchingEngine.DEBUG: -------------------------------------------------- Start --------------------------------------------------  
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] BatchingEngine.DEBUG: Constructor params {"best courier id":351,"current order":253,"remaining orders":[{"255":{"volume":800,"delivery start":"2018-11-08 22:00:00","cdp":1964,"store":113}},{"251":{"volume":90,"delivery start":"2018-11-08 22:00:00","cdp":1876,"store":113}}]} 
[2018-11-08 19:31:21] DeliveryTime.DEBUG: No courier provided. Using configuration values.  
[2018-11-08 19:31:21] BatchingEngine.DEBUG:     Haversine duration ordering {"details":{"current order id":253,"compared order id":255,"haversine duration":90}} 
[2018-11-08 19:31:21] BatchingEngine.DEBUG:     Haversine duration ordering {"details":{"current order id":253,"compared order id":251,"haversine duration":151}} 
[2018-11-08 19:31:21] BatchingEngine.DEBUG: Trying to batch order {"order_id":255} 
[2018-11-08 19:31:21] DeliveryTime.DEBUG: Courier provided. Using real coordinates. {"coordinates":{"lat":"45.41241800","lng":"10.97596900"},"eta":90} 
[2018-11-08 19:31:21] DeliveryTime.DEBUG: Courier provided. Using real coordinates. {"coordinates":{"lat":"45.41241800","lng":"10.97596900"},"eta":90} 
[2018-11-08 19:31:21] DeliveryTime.DEBUG: Courier provided. Using real coordinates. {"coordinates":{"lat":"45.41241800","lng":"10.97596900"},"eta":90} 
[2018-11-08 19:31:21] BatchingEngine.DEBUG: Batching order resulted {"order id":255} 
[2018-11-08 19:31:21] BatchingEngine.DEBUG: --------------------------------------------------- End ---------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment