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

DjangoResultStoreMixin event handlers do not check event's job store #192

Open
GrantShotwell opened this issue Oct 2, 2024 · 0 comments
Labels

Comments

@GrantShotwell
Copy link

Describe the bug / feature
The DjangoResultStoreMixin class has event handlers that do not compare event.jobstore with self._alias. This causes the DjangoJobstore to handle events from other job stores.

To Reproduce
Steps to reproduce the behavior:

  1. Start a scheduler with a DjangoJobStore and a MemoryJobStore with separate aliases.
  2. Run a job on the MemoryJobStore.
  3. The scheduler process will log "Job '[job name]' no longer exists! Skipping logging of job execution...". The database container (in my case Postgres) also logs some errors.

Expected behavior
The DjangoJobstore should ignore events from other job stores.

@jcass77 jcass77 added the bug label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants