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

feat(slab): wait slab until async task is over #30

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

soonum
Copy link
Contributor

@soonum soonum commented Jul 17, 2024

This is done to handle various timeouts configuration on spawn request in Slab. Until now the timeout was set to 15 minutes. This was fine since default spawn timeout in Slab was set to 10 minutes. However in some cases, slab backend profiles can request a longer duration before timeout.
Since the asynchronous task created in Slab will eventually finish, we now simply wait for this moment.

This is done to handle various timeouts configuration on spawn
request in Slab. Until now the timeout was set to 15 minutes. This
was fine since default spawn timeout in Slab was set to 10 minutes.
However in some cases, slab backend profiles can request a longer
duration before timeout.
Since the asynchronous task created in Slab will eventually
finish, we now simply wait for this moment.
@soonum soonum requested a review from IceTDrinker July 17, 2024 08:07
@soonum soonum self-assigned this Jul 17, 2024
Comment on lines +61 to +62
// while (true) equivalent to please ESLint
for (;;) {
Copy link
Member

Choose a reason for hiding this comment

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

the action can be struc forever ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No because the task will finish at some point. Plus in case of task fetching failure we also break.

Copy link
Member

Choose a reason for hiding this comment

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

plus worst case it's an ubuntu instance from github that is going to spin forever

@soonum soonum requested a review from IceTDrinker July 17, 2024 09:35
@soonum soonum merged commit 447a2d0 into main Jul 17, 2024
12 checks passed
@soonum soonum deleted the dt/feat/wait_on_task branch July 17, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants