You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open up an interface to add functionality to the main loop.
A plugin would define:
Some function to run before the main loop.
Some function to run at the end of the main loop at a minimum interval of X.
Some function to run at the end of the main loop (unless errored)?
This would help us to develop on-board analytics and would play very nicely with the next profile-battery (when/if we ever get around to that!).
At present we have on-board profiling (the cylc profiling stuff, uses cprofile), that could be easily implemented via this interface.
The trigger to this idea was the way we patched the scheduler object to identify this memory leak:
I've written many cylc.flow.scheduler patches like this at some point or another. Would be nice if we could save those patches so we could perform that analysis again on another branch at a later date. Would also provide us with the ability to back-port profiling to earlier versions of Cylc.
The plugin would be given an interface along the likes of:
before(Scheduler: sch) -> data: dict
during(Scheduler: sch, data: dict)
after(data: dict)
Pull requests welcome!
The text was updated successfully, but these errors were encountered:
Open up an interface to add functionality to the main loop.
A plugin would define:
This would help us to develop on-board analytics and would play very nicely with the next profile-battery (when/if we ever get around to that!).
At present we have on-board profiling (the cylc profiling stuff, uses
cprofile
), that could be easily implemented via this interface.The trigger to this idea was the way we patched the scheduler object to identify this memory leak:
I've written many
cylc.flow.scheduler
patches like this at some point or another. Would be nice if we could save those patches so we could perform that analysis again on another branch at a later date. Would also provide us with the ability to back-port profiling to earlier versions of Cylc.The plugin would be given an interface along the likes of:
before(Scheduler: sch) -> data: dict
during(Scheduler: sch, data: dict)
after(data: dict)
Pull requests welcome!
The text was updated successfully, but these errors were encountered: