lunchclass / absolute

Absolute is a web-based O2O(Online to Offline) platform like Siren-Order for Starbucks. We are focused on creating the platform that is portable, cheaper, easier, decentralized and appless.
Apache License 2.0
103 stars 31 forks source link

Add callback for default task #464

Closed yjaeseok closed 7 years ago

yjaeseok commented 7 years ago

We do not set callback for default task. default task is finished after call run sequence.

For this reason, we get task logs like below:

[03:50:01] Starting 'default'...
[03:50:01] Starting 'build_server'...
[03:50:01] Finished 'default' after 28 ms
[03:50:02] Finished 'build_server' after 861 ms
[03:50:02] Starting 'run_server'...
[03:50:02] Finished 'run_server' after 51 ms

So I add callback function for waiting for run_server task After this PR, we can see task logs like below:

[03:50:01] Starting 'default'...
[03:50:01] Starting 'build_server'...
[03:50:02] Finished 'build_server' after 861 ms
[03:50:02] Starting 'run_server'...
[03:50:02] Finished 'run_server' after 51 ms
[03:50:01] Finished 'default' after 912 ms

Please refer to run sequence

ISSUE=NONE