• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Workflow Actions are Parallel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Workflow Actions are Parallel?


  • Subject: Workflow Actions are Parallel?
  • From: Rush Manbert <email@hidden>
  • Date: Thu, 24 Jan 2008 15:38:06 -0800

I can't find mention of this in the docs, so I thought I'd ask here.

I have written a workflow that generates some files, then moves them to a different folder. My first attempt kept getting a "no such file or directory" error at the copy step.

I finally realized that I was seeing a race condition between the action that creates the files and the action that moves them. The move action had actually started before the file generation action had completed. In fact, it had started before anything had been written.

I added a 5 second Pause action before the move action. That got rid of the error, but I was still moving files before they had all been generated, depending on how many files I was generating in a batch.

My question is this: Are the workflow actions run as separate, parallel threads of execution? That's certainly how it looks. I would expect that each workflow action would need to complete before the next one was started. Otherwise, how can you believe the output of the previous step? You also end up in race conditions like I have described.

Can anyone enlighten me? Am I doing something wrong?

- Rush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Workflow Actions are Parallel?
      • From: Ben Waldie <email@hidden>
  • Prev by Date: Re: Automator-users Digest, Vol 24, Issue 10
  • Next by Date: Print Finder Items action completes but doesn't do everything
  • Previous by thread: Re: Find iCal by date broken
  • Next by thread: Re: Workflow Actions are Parallel?
  • Index(es):
    • Date
    • Thread