Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt 353 posts 825 karma points
    Aug 04, 2020 @ 10:33
    Matt
    0

    Usync + Content Schedule

    Hi,

    So I'm manually adding content files to uSync folder which get generated from another system.

    Everything is working fine, the new content gets imported however I'm having issues with the Content Schedule not being added. When I add the following to the usync file

    <Schedule>
      <ContentSchedule Key="Guid.NewGuid()">
        <Culture></Culture>
        <Action>Expire</Action>
        <Date>2020-08-19T01:01:00</Date>
      </ContentSchedule>
    </Schedule>
    

    It seems to just be ignored?

    Thanks

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Aug 04, 2020 @ 10:43
    Kevin Jump
    0

    Hi Matt,

    There are fixes/updates in uSync v8.6.4 (newest release) for scheduled stuff - so its probably worth updating to that to confirm.

    I think we now ignore the key value (its never consistent, and doesn't actually matter for this when we have dates) but the above should work.

    For Info :

    There is some code we use at publish time to work out state : https://github.com/KevinJump/uSync8/blob/v8/dev/uSync8.ContentEdition/Extensions/ContentScheduleExtensions.cs

    If the action is in the past, then it isn't added, but rather the last valid action is performed.

    We calculate what that is, based on all the schedules on a job.

    So for example if there is a release and an expire, and the release is in the past we publish - if they are both in the past - we unpublish.

  • Matt 353 posts 825 karma points
    Aug 04, 2020 @ 10:46
    Matt
    0

    Hello Kevin,

    Ah thats good to hear, hopefully it is that. I'm running v8.5.0.0

    I'll look at updating Umbraco + Usync and seeing if that resolves it.

    Thanks

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Aug 04, 2020 @ 10:48
    Kevin Jump
    0

    Hi,

    you don't need to update Umbraco (if you don't want to) - v8.6.4 of uSync is backwards compatible with all Umbraco 8.x . (we are stuck a bit in version hell!)

  • Matt 353 posts 825 karma points
    Aug 17, 2020 @ 14:06
    Matt
    0

    Hi Kevin,

    Do I need to update through visual studio? I did install originally through nuget, would I have to pull everything back to Dev run the update then push back to staging?

    Thanks

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Aug 17, 2020 @ 14:10
    Kevin Jump
    0

    Hi Matt,

    yes best way is to install via Nuget.

    You shouldn't have to move the content back to dev though just updating the package should be enough

    (although you can of course test it works by pushing back to stage once you've upgraded)

Please Sign in or register to post replies

Write your reply to:

Draft