Workflow Actions are Parallel?
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