Replies: 1 comment 3 replies
-
Hey @kinow , Welcome to Covalent and thank you for your question! It's great to see that you've explored Covalent. I'll help clarify how to achieve cyclic patterns and dynamic graphs in Covalent and provide examples for your specific use case. Understanding
|
Beta Was this translation helpful? Give feedback.
-
Hello,
After some discussion in the Workflows Community slack channel, I got curious about Looping in Covalent. In CWL, there's a work-in-progress implementation of loops. But the CWL implementation allows users to create cycles in their workflows.
In other workflows like Cylc and ecFlow, cyclic graphs are extremely important. It's hard to find a good definition of how portable is the definition of cycles and loops between workflow managers, so I decided to run some experiments.
I managed to implement something like this:
Meaning, the task
a
callsa
, with this code:Now, I'm trying to implement what in Cylc is called "integer cycle points", where each task instance has a cycle number (the cycle point identifier). Whenever a new instance is created, we start a new cycle, increasing its number/identifier. A task then starts its next instance in the next cycle point, and so it goes either until it reaches a final condition, or ad infinitum.
My question is, would it be possible in Covalent? This is the code that I wrote.
Thank you!
Bruno
Beta Was this translation helpful? Give feedback.
All reactions