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

🐞 Using Fiber.schedule in console #115

Open
rsamoilov opened this issue Jan 9, 2025 · 1 comment · May be fixed by #125
Open

🐞 Using Fiber.schedule in console #115

rsamoilov opened this issue Jan 9, 2025 · 1 comment · May be fixed by #125
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@rsamoilov
Copy link
Member

rsamoilov commented Jan 9, 2025

Description

Currently, because Rage scheduler is only available during the request lifecycle, calling Fiber.schedule in the console raises the No scheduler is available! (RuntimeError) error.

Steps to Reproduce

  • Create a new Rage application.
  • Open Rage console using the rage c command.
  • Run Fiber.schedule { sleep(1); puts("hello") }.
  • Actual behaviour: No scheduler is available! (RuntimeError) is raised.
  • Expected behaviour: the fiber is executed in the synchronous manner.

Tips

  • See lib/rage/rspec.rb for a reference implementation.
  • Check the overview doc that shows how Rage's core components interact with each other.
  • Feel free to ask any questions or request help in the comments below!
@rsamoilov rsamoilov added bug Something isn't working good first issue Good for newcomers labels Jan 9, 2025
@TheBlackArroVV TheBlackArroVV linked a pull request Jan 26, 2025 that will close this issue
@TheBlackArroVV
Copy link
Contributor

Hey, @rsamoilov, please, take a look into #125 when you have time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants