-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Handle task failure and fix task duplication #588
Conversation
|
||
import BackgroundTasksContext from "./context"; | ||
import { handleTask, queueCustom } from "./tasks"; | ||
import { QueuedTask, Task, TaskData, TaskStatus } from "./types"; | ||
|
||
export const backgroundTasksRefreshTime = 15 * 1000; | ||
|
||
export function useBackgroundTasks() { | ||
// TODO: Remove underscores when these arguments would be finally useful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? What does it mean useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like, uh, #575
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider changing task names in test to make them easier to read.
Besides that 👍
src/containers/BackgroundTasks/BackgroundTasksProvider.test.tsx
Outdated
Show resolved
Hide resolved
src/containers/BackgroundTasks/BackgroundTasksProvider.test.tsx
Outdated
Show resolved
Hide resolved
77d5ab4
to
b28bd31
Compare
I want to merge this change because it fixes a few things:
PR intended to be tested with API branch: master
Screenshots
Pull Request Checklist