Skip to content

Commit 46bf671

Browse files
committed
Rename ProgressEvent.BuildStatus.COMPLETED to BUILT
1 parent 1763a9a commit 46bf671

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

binderhub/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class BuildStatus(Enum):
4747

4848
PENDING = "pending"
4949
RUNNING = "running"
50-
COMPLETED = "built"
50+
BUILT = "built"
5151
FAILED = "failed"
5252
UNKNOWN = "unknown"
5353

binderhub/builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def _check_result(future):
513513
if progress.payload == ProgressEvent.BuildStatus.PENDING:
514514
# nothing to do, just waiting
515515
continue
516-
elif progress.payload == ProgressEvent.BuildStatus.COMPLETED:
516+
elif progress.payload == ProgressEvent.BuildStatus.BUILT:
517517
event = {
518518
"phase": phase,
519519
"message": "Built image, launching...\n",
@@ -526,7 +526,7 @@ def _check_result(future):
526526
log_future = pool.submit(build.stream_logs)
527527
log_future.add_done_callback(_check_result)
528528
continue
529-
elif progress.payload == ProgressEvent.BuildStatus.COMPLETED:
529+
elif progress.payload == ProgressEvent.BuildStatus.BUILT:
530530
# Do nothing, is ok!
531531
continue
532532
elif progress.payload == ProgressEvent.BuildStatus.FAILED:

binderhub/tests/test_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async def test_local_repo2docker_build():
259259
event = await q.get(10)
260260
if (
261261
event.kind == ProgressEvent.Kind.BUILD_STATUS_CHANGE
262-
and event.payload == ProgressEvent.BuildStatus.COMPLETED
262+
and event.payload == ProgressEvent.BuildStatus.BUILT
263263
):
264264
break
265265
events.append(event)

0 commit comments

Comments
 (0)