Avaiga / taipy-core

A Python library to build powerful and customized data-driven back-end applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add new APIs on submittable entities

jrobinAV opened this issue · comments

  • Rename submittable._get_inputs to make it public (get_inputs). It returns the set of input data nodes.
  • Add submittable.get_outputs. It should return the set of output data nodes.
  • Add submittable.get_intermediates. It should return the set of data nodes that are not an input nor an output.
  • Add submittable.is_ready_to_run.
def is_ready_to_run(self):
    return all([d.is_ready_for_reading for d in submittable.get_inputs()])
  • Add submittable.execution_in_progress method that returns the set (eventually empty) of data nodes of the submittable that are in progress.
  • Add documentation (user man and ref man)
  • Add release notes

@jrobinAV
For submittable.execution_in_progress, I don't think this will be feasible at least in development mode. In standalone mode, it should be doable. What do you think?

Since the development mode is synchronous, when a user calls submittable.execution_in_progress, no data node will be in progress. You are right. Maybe there will be some specific cases where the application stops during an execution. When it restarts, some data nodes could be in progress while no job is running. It s kind of a pathological case.

In any case, I believe we can implement it regardless of the execution mode. It should work for all cases.

I believe you're right!