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

ServiceA executing ServiceB jobs #1002

Closed
sergeyshaykhullin opened this issue Oct 20, 2020 · 2 comments
Closed

ServiceA executing ServiceB jobs #1002

sergeyshaykhullin opened this issue Oct 20, 2020 · 2 comments

Comments

@sergeyshaykhullin
Copy link
Contributor

Describe the bug

Test setup:

  • Web service
    • schedulerName=Test
    • schedulerId=Test.Web
    • .AddQuartz
  • Worker service
    • schedulerName=Test
    • schedulerId=Test.Worker
    • AddQuartz and AddQuartzServer

Test workflow:

  • Web has an endpoint and adding once-fire trigger with job data
  • Worker configure a job logging job data to console
HTTP -> Web -> Scheduler <-> Trigger <-> Scheduler -> Service -> Log

Problem:

  • Web also trying to execute this job, but no AddQuartzServer configured =/
  • I can't configure Web schedulerName differ from Worker, because Worker scheduler will not see triggers and jobs for another scheduler

Version used

3.2.2

Expected behavior

Web can schedule job for Worker and only Worker executing this job

@lahma
Copy link
Member

lahma commented Oct 20, 2020

For a node that is only administering the database, you should configure ZeroSizeThreadPool into use and not start the scheduler.

@sergeyshaykhullin
Copy link
Contributor Author

I add configuration methods for ZeroSizeThreadPool #1003

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

2 participants