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

Scheduled jobs support #537

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Scheduled jobs support #537

wants to merge 1 commit into from

Conversation

nyet-ty
Copy link
Collaborator

@nyet-ty nyet-ty commented Feb 5, 2024

Resole taskany-inc/crew#895

PR includes

  • Feature

src/components/OfflineBanner/OfflineBanner.tsx Outdated Show resolved Hide resolved
src/pages/404.tsx Outdated Show resolved Hide resolved
import { prisma } from '../prisma';
import { MessageBody } from '../../modules/nodemailer';

export const defaultJobDelay = process.env.WORKER_JOBS_DELAY ? parseInt(process.env.WORKER_JOBS_DELAY, 10) : 1000;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be in config

import * as resolve from './resolve';
import { getNextJob, jobDelete, jobUpdate } from './jobOperations';

const queueInterval = config.worker.queueInterval ? parseInt(config.worker.queueInterval, 10) : 3000;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be parsed in config

@nyet-ty nyet-ty marked this pull request as draft February 9, 2024 16:17
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

Successfully merging this pull request may close these issues.

2 participants