Skip to content

Releases: allenai/beaker-py

v1.6.5

15 Jul 23:11
Compare
Choose a tag to compare

What's new

Fixed ✅

  • Fixed bug with checking job status. Sometimes a successful job would be marked as failed.

Commits

451317e fix bug with job status checks

v1.6.4

14 Jul 20:13
Compare
Choose a tag to compare

What's new

Fixed ✅

  • Removed outdated field owner from Experiment, Task, and Dataset.

Commits

13979bb Bump black from 22.3.0 to 22.6.0 (#134)
4290f84 Remove "owner" field (#137)

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)