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

Server Outputs #1

Open
thinkerbot opened this issue Jun 8, 2009 · 1 comment
Open

Server Outputs #1

thinkerbot opened this issue Jun 8, 2009 · 1 comment
Labels

Comments

@thinkerbot
Copy link
Owner

Redirecting output for the server is tricky.

Basic Redirection Proposal

  • Redirect stdout and app log based on build, effectively creating 'runs'
  • Leave stderr to console, or to daemon redirection for logging errors

This will handle use cases of building a dump file. Handles can be open/closed from the app control panel, and then the files can be accessed through app/data.

Leaving one stderr file prevents error messages from being split across multiple files.

Monitor Proposal

  • Implement renderer middleware that will render to a directory/id where id will increment and render flagged tasks
  • Create a directory.index partial

This basic idea allows specific tasks to render their results in an incrementing fashion. Each result can be monitored, essentially, as it comes off the task. The effect is to allow an individual task to be run without a dump, or conversely, to have the results of a task rendered in one specific way.

@thinkerbot
Copy link
Owner Author

Run Proposal

  • Setup a controller /run/task/id
  • Get print out help.erb, config.erb, input.erb, results index
  • Post parse config and input. Instantiate, run via call (no app), then render result.erb using renderer
  • Return rendered result with links to go again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant