Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce 'Endpoint' and launch endpoints in tasks. #459

Merged
merged 9 commits into from
Jan 15, 2024

Conversation

floitsch
Copy link
Member

No description provided.

@floitsch floitsch requested a review from kasperl January 12, 2024 11:45
Base automatically changed from floitsch/uart.10.move-network to main January 12, 2024 11:46
Copy link
Member

@kasperl kasperl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

backoff := Duration --s=5
logger.info "backing off for $backoff"
sleep backoff
endpoints := [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to get these endpoints passed in to serve from the outside, so the configuration step is nicely split from the logic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will address this in a follow-up PR.

// If Jaguar needs to be disabled, we stop here and wait until
// we can re-enable Jaguar.
if disabled:
network-free.up // Signal to start running the container.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit weird now. The endpoint may not be network related? Should this be a call to the endpoint? Or should it just be renamed to jaguar-disabled.up?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.
Will do a follow-up PR.

backoff := Duration --s=5
logger.info "backing off for $backoff"
sleep backoff
Task.group lambdas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that we have this.

@floitsch floitsch merged commit 42a79f3 into main Jan 15, 2024
7 checks passed
@floitsch floitsch deleted the floitsch/uart.20.interface branch January 15, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants