I have a question: can I publish nodes with a delayed date for 6 months and have it all work automatically?

Created on 25 July 2023, 12 months ago
Updated 27 July 2023, 11 months ago

Hello, everyone! I have a question: can I publish nodes with a delayed date for 6 months and have it all work automatically? In other words, an article would be published every 6 months. Can this be done using the ECA module?

πŸ“Œ Task
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Sharik_2023
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    can I publish nodes with a delayed date for 6 months and have it all work automatically?

    Sure, you can either enqueue a task with ECA with a schedule in 6 months. Or you can add a hidden date field to your node which holds the scheduled publishing date and with an ECA cron event, you can receive all due nodes for publishing with a view. And then ECA can publish those nodes either way.

    In other words, an article would be published every 6 months.

    Not sure what you mean by that. Once a node is published, it's published. It won't be done in 6 months again because by then it is already published.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    I mean that this event should repeat every 6 months, in other words, there should be a loop.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Well, cron runs can be done every minute, and your scheduled tasks will decide whether they are due for being processed or not yet.

    So, if cron runs every minute and the publishing is scheduled for 25. December 2023 at 9am, then ECA will be triggered every minute by cron and always decides that nothing is due yet, until it reaches that scheduled date and time.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    Apologies, perhaps I didn't explain the essence of the question clearly. I have certificates that need to be issued every 6 months from the date a person is hired.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Yes, I think I understand that. And using scheduled tasks is what should help you doing that. Not sure what's missing, please let us know in more detail if our previous answers are not satisfying you yet.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    Everything worked out, thank you

  • Status changed to Fixed 11 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Thanks for your feedback.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024