force-h2020 / force-bdss

Business Decision System general interface
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Dev: Workflow event types #270

Closed Corwinpro closed 4 years ago

Corwinpro commented 4 years ago

This PR extends the changes introduced in #269 This PR approaches #247, and #333 of the WorkflowManager

Summary

We introduce mco_events types to the BaseMCOModel class. Now developers are able to specify custom start, progress, and finish events in the MCOModel: events of these types will be raised at runtime.

notify_new_point is not deprecated. Use notify_progress_event instead.

Done

codecov-io commented 4 years ago

Codecov Report

Merging #270 into dev/workflow-event will increase coverage by 0.02%. The diff coverage is 100%.

Impacted file tree graph

@@                  Coverage Diff                   @@
##           dev/workflow-event     #270      +/-   ##
======================================================
+ Coverage               96.93%   96.95%   +0.02%     
======================================================
  Files                      54       54              
  Lines                    1499     1511      +12     
  Branches                  144      144              
======================================================
+ Hits                     1453     1465      +12     
  Misses                     42       42              
  Partials                    4        4
Impacted Files Coverage Δ
force_bdss/mco/base_mco_model.py 100% <100%> (ø) :arrow_up:
force_bdss/app/optimize_operation.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d5d6481...c671fb3. Read the comment docs.