AYON Pipeline and last workfile

Bumping this topic, I think this is interesting workflow wise. We have the same setup and I think it is sth everybody would want. I have implemented rclone as a provider which enables almost every cloud storage out there. https://github.com/ynput/ayon-sitesync/pull/70
So questions I have if we want to work between a remote artist and a studio artist. The first time the remote artists starts the application it downloads the latest published workfile, but after the first publish how does that continue in the normal cycle of working on one site and then on the remote site ? Currently once there is a local workfile it is always picking that one, which is not what I would want. I would in case the latest publish workfile is newer compared to the local workfile to use the published workfile… or is a dialog better where the user is being asked ? Looking forward to your thoughts.

Hello,
I’ve moved this one to a new topic. I think your question is more about how AYON deals with workfiles.

Let me drop some info:

  1. when launching an application. you can specify whether to open the last workfile or start an empty/untitled workfile. artists are free to change it.

    The last workfile can be the last local file or last published file.
    you can configure this and the default value of opening last workfile in core addon settings. ayon+settings://core/tools/Workfiles/last_workfile_on_startup
  2. workfiles tools: users can switch between local files and published files via Published toggle. it’s worth mentioning that published files are not opened directly, they are copied to local files as new version.

From your post, I think you are asking about comparing date modified of last local workfile and last published workfile. and open the last modified workfile.

I think this feature may potentially introduce an issue: e.g.
Image you are publishing a render + workfile.

  • Your file is saved.
  • Publisher has done publishing.
  • You closed the application.
  • Now, the date modified on your file will be older than date modified on the published file.
  • when launching the app again through launcher, it’ll copy and open the last published workfile.

Anyway, feel free to submit a feature request on our feedback portal.

I see you made a PR already add proposal to handle the setting of use last published workfile by nebukadhezer · Pull Request #1683 · ynput/ayon-core · GitHub, Cool!

Thanks for the overview… Use last published workfile setting doesn't work · Issue #1346 · ynput/ayon-core · GitHub this describes one problem and this related to sitesync Copy last published workfile doesn't trigger if any version of a workfile is present · Issue #63 · ynput/ayon-sitesync · GitHub… but I think it is all tied together and should be sound. If the sitesync now does sync the data if the latest publish is not there yet, then with the PR above I think I am fine workflow wise…

in regards to your example I do agree that this might happen, but we could add a checksum check to prevent that, but that is somewhat expensive… and I believe the workfile is versioned up last, so it will currently win over the publish date, so no harm done to the standard workflow.