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

Task scripts are not properly handled when hot-swapping tasks #5199

Open
philippotto opened this issue Feb 22, 2021 · 0 comments
Open

Task scripts are not properly handled when hot-swapping tasks #5199

philippotto opened this issue Feb 22, 2021 · 0 comments

Comments

@philippotto
Copy link
Member

Context

Finishing a task and starting a new one via "Finish and get next task" doesn't work correctly when scripts are involved. For example, a script which shows a message upon task start, won't show that message when the second task was started.

Expected Behavior

Ideally, each task script should be terminated when a task is done, and the new task script should be started.

Current Behavior

Currently, the page reloads if the task script changes. If the script does not change, the script simply stays alive for the new task. If it does the correct thing, is implementation specific.

Steps to Reproduce the bug

  1. Create task with script which outputs something upon start
  2. Switch from one task to another with "finish and get next task"
  3. see that the output only is created once.

Your Environment for bug

  • Browser name and version: e.g. Chrome 39
  • Operating System and version: e.g. Windows 10
  • Version of WebKnossos (Release or Commit):
    irrelevant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants