Skip to content

Releases: allenai/beaker-py

v1.6.3

05 Jul 17:47
Compare
Choose a tag to compare

What's new

Fixed ✅

  • Handling empty string values in Beaker config YAML files for compatibility with beaker CLI.
    Any empty string values in a Beaker config YAML file are now converted to None when the Config
    object is loaded from the file.
    On the other hand, if you try to explicitly set the value of a field to an empty string when initializing the Beaker client (e.g. Beaker.from_env(default_org=''))
    you'll get a ValueError.

Commits

760cc93 Catch empty strings in config (#135)
cd72848 fix changelog

v1.6.2

27 Jun 18:49
Compare
Choose a tag to compare

What's new

Fixed ✅

  • Fixed a bug where the session parameter to Beaker.from_env() was actually passed through to the class' __init__() method.

Commits

d3f18dc Fix bug with session parameter

v1.6.1

24 Jun 21:47
Compare
Choose a tag to compare

What's new

Changed ⚠️

  • Added support for older versions of Pydantic (back to v1.8.2).

Commits

909fcd8 Add support for older versions of Pydantic (#133)

v1.6.0

17 Jun 22:55
Compare
Choose a tag to compare

What's new

Added 🎉

  • Added Beaker.job.follow() and Beaker.experiment.follow() methods for live streaming logs.

Changed ⚠️

  • The return type of Beaker.experiment.tasks() behaves like both a Sequence[Task] and a Mapping[str, Task], i.e.
    you can call __getitem__() with either an int, slice, or a str for the name of a task.

Fixed ✅

  • Fixed a bug where Beaker.(job|experiment).(wait_for|as_completed)() methods could hang if a job was canceled or failed to ever start for some reason.

Commits

f0b1d98 Add .follow() methods (#130)

v1.5.1

16 Jun 23:49
Compare
Choose a tag to compare

What's new

Changed ⚠️

  • Beaker.(job|experiment).(wait_for|as_completed)() methods now raises a more specific JobTimeoutError (which inherits from TimeoutError) instead of a generic TimeoutError.

Commits

e98f04c Raise JobTimeoutError instead of bare TimeoutError

v1.5.0

16 Jun 22:31
Compare
Choose a tag to compare

What's new

Added 🎉

  • Added since parameter to Beaker.job.logs() and Beaker.experiment.logs().

Commits

6e38e46 Fix docstring
9e0cfc6 Add since parameter to .logs() methods (#129)
f533059 Finish all required methods for BufferedReaderWithProgress (#128)
99c8d7f Use new form os issue templates
516278d Simplify issue and PR templates (#127)

v1.4.2

13 Jun 21:32
Compare
Choose a tag to compare

What's new

Fixed ✅

  • Fixed bug in loading config where encountering unknown fields would cause an exception.
    beaker-py now gracefully handles this.

Commits

21fea35 Handle unknown config fields gracefully (#126)

v1.4.1

10 Jun 19:17
Compare
Choose a tag to compare

What's new

Added 🎉

  • Added session argument to Beaker client constructors (.from_env() and __init__()).
    You can use this argument to force the client to use a single HTTP Session for all requests to the server
    for the life of the client. Using this approach it's not necessary to use the Beaker.session() context manager,
    but you should only use this if the client is short-lived.

Commits

ecf3843 Add session parameter (#124)
4f2b0d7 Bump actions/setup-python from 3 to 4 (#121)
872cbba update some dev requirements (#123)
fd90b91 Bump furo from 2022.4.7 to 2022.6.4.1 (#120)

v1.4.0

09 Jun 20:12
Compare
Choose a tag to compare

What's new

This release comes with an important HTTP performance and robustness upgrade, specifically with how the client makes requests to the Beaker server.

Added 🎉

  • Added Beaker.session() context manager for improving performance when calling a series of
    client methods in a row.
  • Added timeout parameter to Beaker client initialization methods with a default of 5 (seconds).
    This controls the connect and read timeouts of HTTP requests sent to the Beaker server.

Commits

9ac5677 Merge pull request #122 from allenai/http-perf
bbb1bf7 fix token
8f31e0d fix setup-beaker
9da6bf7 Add timeout parameter
d8dcae2 Use session in sweep example
739869e Add Beaker.session() context manager

v1.3.0

31 May 18:48
Compare
Choose a tag to compare

What's new

Added 🎉

  • Added Beaker.group.export_experiments() method.

Fixed ✅

  • Fixed Job priority validation.

Commits

529018a Add export_experiments method to GroupClient (#116)
c43f83b Fix priority validation