CYBERTEC Logo

Introducing pg_timetable v5.6: delayed chains and error handling

10.2023 / Category: / Tags: |

We're excited to unveil pg_timetable v5.6, a significant release that takes your PostgreSQL job scheduling to a new level. In this release, we've introduced several key enhancements and features that empower you to manage and automate your database tasks precisely and flexibly.

Start async chains with delay

One of the standout features in pg_timetable v5.6 is the addition of the chain delay start functionality. Now, you can asynchronously initiate chains of tasks with a time delay:

The code above means to send the "vacuumer" worker command to start the chain with ID=42 in 1 hour from this moment.

The most obvious situation when you want to use this functionality is the following. Imagine you have a high load on the system at the moment. And you have scheduled soon or even running jobs already. To manage resources efficiently by giving the system some breathing room, you can cancel some chains right now and execute them later. Just notify a worker about a delayed start without applying any changes to job settings.

Chain Error Handling

Another game-changing addition is the enhanced chain error handling. From now you can execute any arbitrary SQL command if the chain fails. Either you want to write a log entry about failure or restart the whole process; it's up to you now!

Other Changes

But that's not all! In pg_timetable v5.6, we've included a range of other improvements and updates to enhance your experience:

  • Go Version Bump: We've bumped the Go version to v1.21, ensuring that pg_timetable stays current with the latest developments in the Go ecosystem.
  • Refactored Task Execution: We've refactored autonomous and remote task execution. This refinement ensures smoother and more efficient execution of your tasks, reducing the risk of interruptions and failures.
  • Bug Fix: We've addressed a rare bug by resetting the session before returning a connection to the pool. This fix ensures the stability and integrity of your parallel processes.

Finally...

The full changelog is available on the v5.6 release page. We want to thank all contributors and users for their help.

If you want to contribute to pg_timetable and help to make it better:

In conclusion, I wish you all the best! ♥️
Please, stay safe – so we can meet in person at one of the conferences, meetups, or training sessions!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
CYBERTEC Logo white
CYBERTEC PostgreSQL International GmbH
Römerstraße 19
2752 Wöllersdorf
Austria

+43 (0) 2622 93022-0
office@cybertec.at

Get the newest PostgreSQL Info & Tools


    This site is protected by reCAPTCHA and the Google Privacy Policy & Terms of Service apply.

    ©
    2024
    CYBERTEC PostgreSQL International GmbH
    phone-handsetmagnifiercrosscross-circle
    0
    Would love your thoughts, please comment.x
    ()
    x
    linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram