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

fix: event should be emitted when task is created by scheduling worker #2317

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

TBonnin
Copy link
Collaborator

@TBonnin TBonnin commented Jun 13, 2024

Created task events are useful for long polling to be instantly notified of a new created tasks.

Checklist before requesting a review (skip if just adding/editing APIs & templates)

  • I added tests, otherwise the reason is:
  • I added observability, otherwise the reason is:
  • I added analytics, otherwise the reason is:

@@ -7,7 +7,7 @@ import { setTimeout } from 'node:timers/promises';
import type knex from 'knex';
import { logger } from '../../utils/logger.js';

interface MessageOut {
interface ExpiredTasksMessage {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated but wanted to be consistent with the naming of the same notifying mechanism in the monitor and scheduling worker

Created task events are useful for long polling to be instantly notified
of a new created tasks.
@TBonnin TBonnin force-pushed the tbonnin/fix-scheduling-event branch from 643fd53 to 18d37f3 Compare June 13, 2024 12:34
@TBonnin TBonnin enabled auto-merge (squash) June 13, 2024 12:34
@TBonnin TBonnin merged commit abbded9 into master Jun 13, 2024
19 checks passed
@TBonnin TBonnin deleted the tbonnin/fix-scheduling-event branch June 13, 2024 12:39
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.

3 participants