omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Combined Workflows With Python Scripts Crash / Freeze Editorial

    Editorial
    editorial sub workflows python
    3
    7
    6184
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Stefano
      Stefano last edited by

      I am working on a side project that uses a modular workflow ( WF ) approach.

      The main WF calls a sub WF, which contains a Python script, and afterwards uses its own Python logic to further enhance the output.

      Running the main WF crashes / freezes Editorial every second time. Replacing the Python script in the main WF with Editorials Action logic runs flawlessly as expected. The only downside for this approach is the rather long chain of actions.

      It looks like Editorial can handle only one ( or maybe more? ) Python script on the same "execution level" at a time.

      Is this issue known ( to anyone ) and does someone have a possible solution for it?

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        @Stefano Could you please give us some steps to replicate the behavior that you are seeing?

        1 Reply Last reply Reply Quote 0
        • TutorialDoctor
          TutorialDoctor last edited by

          I made a workflow a while ago called modular Python. Maybe this is what you are trying to achieve? Not really sure what you are asking.

          http://www.editorial-workflows.com/workflow/5284439445733376/azjk271i9uw

          1 Reply Last reply Reply Quote 0
          • Stefano
            Stefano last edited by

            Thanks to both of you @ccc and @TutorialDoctor for your replies.

            @ccc : I have set up a simplified version of my modular approach and it works without flaws. There must be something else going on. I will investigate and keep you int the loop.

            @TutorialDoctor : I have downloaded your WF — interesting approach! Here comes my way:

            -- Main WF : defines some ( action ) variables, calls a first Sub WF, which mainly consists of a Python script for producing an out- / input. A second Sub WF ( again a Python script ) is run to construct the final result.

            The reason for my approach: I can use the first Sub WF to build some other main WFs. All future bug fixes and enhancements in the WF module will immediately reflect in any Main WFs using it. Nice! No tedious copying etc.

            1 Reply Last reply Reply Quote 0
            • TutorialDoctor
              TutorialDoctor last edited by TutorialDoctor

              Okay, so you want to be able to pass data between workflows?

              I created a main workflow with a Set Variable with a value of 2 and Sub-Workflow action that calls another workflow underneath that.

              In that second workflow I created a Run Python Script action that has the following code:

              import workflow
              print(workflow.get_input())
              

              When I run the first workflow, 2 is printed to the console.

              Is this the type of setup you want?

              1 Reply Last reply Reply Quote 0
              • Stefano
                Stefano last edited by

                That is exactly one setup I have @TutorialDoctor :

                1. Main WF calls the ( modular ) Sub WF and processes the output with actions. Works fine.

                2. Main WF calls the ( modular ) Sub WF and processes the output by calling a Python script — I have moved the previous second Sub WF one level up. Here Editorial crashes at every second Run of the Main WF. After killing Editorial the first run is fine again and ... crashes afterwards. Puzzling.

                Maybe Editorial doesn't like to process Python in different WFs during one combined run?

                1 Reply Last reply Reply Quote 0
                • Stefano
                  Stefano last edited by

                  @omz, any idea / explanation form your side?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors