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

Implement TriggerListener #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Implement TriggerListener #82

wants to merge 2 commits into from

Conversation

chhil
Copy link
Contributor

@chhil chhil commented Jul 5, 2018

At times its possible trigger doesn't fire (quartz calls it mis-fire)and we need to log it else we may just not know when a job isn't performed.
Mis-fire handling instructions need to be provided at trigger creation time (withMisfireHandlingInstructionFireAndProceed).
Also helpful to log when the trigger is fired and completed(part of TriggerListener implementation) along with info when it will get triggered again.

chhil added 2 commits July 5, 2018 11:08
At times its possible trigger doesn't fire (quartz calls it mis-fire)and we need to log it else we may just not know when a job isn't performed.
Mis-fire handling instructions need to be provided at trigger creation time (withMisfireHandlingInstructionFireAndProceed).
Also helpful to log when the trigger is fired and completed(part of TriggerListener implementation) along with info when it will get triggered again.
Manual edit added an extra bracket
@aVolpe
Copy link
Contributor

aVolpe commented Dec 18, 2020

You should add scheduler.getListenerManager().addTriggerListener(this); to register the trigger to the scheduler, otherwise the methods are not called.

chhil added a commit to chhil/jPOS-EE that referenced this pull request Dec 19, 2020
The startservice was missing the registering of the trigger.
I have this in my prod code, its somehow got missed in the jpos#82
@chhil
Copy link
Contributor Author

chhil commented Dec 19, 2020

You should add scheduler.getListenerManager().addTriggerListener(this); to register the trigger to the scheduler, otherwise the methods are not called.

You are correct, for some reason it did not get added in this PR (most likely due to me running on older versions of jpos and copy pasting the code directy into github editor). . I have this running in prod code.

master...chhil:patch-6

@ar
Copy link
Member

ar commented Dec 19, 2020

Your patch-6 wasn't added to this PR @chhil - can you force push it?

@chhil
Copy link
Contributor Author

chhil commented Dec 20, 2020

What do I need to do to force push?

@ar
Copy link
Member

ar commented Dec 20, 2020

I believe you need to cherry-pick your patch-6 change (d051d8e5) into your patch-11, then push -f your patch-11.

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