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

Reusable UI/routes for polling for job completion #12

Open
loppear opened this issue Dec 14, 2017 · 0 comments
Open

Reusable UI/routes for polling for job completion #12

loppear opened this issue Dec 14, 2017 · 0 comments

Comments

@loppear
Copy link
Contributor

loppear commented Dec 14, 2017

An interstitial route and template for users to be redirected to on job initialization that checks for completion (or a project-specific query to return a record?) before forwarding to a project-specific result/view route. e.g. maybe

jobid = await workerQueue.worker('taskName')
redir = await workerQueue.pollingUI(jobid, '/path/for/success')
res.redirect(redir)

Template name should be documented for project theming/override, and include a renderable partial of just the spinner/polling logic.

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

No branches or pull requests

1 participant