Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Scheduler] AddAbstractTriggerDecorator#51152

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:6.4fromkbond:decorated-trigger
Jul 31, 2023

Conversation

kbond
Copy link
Member

QA
Branch?6.4
Bug fix?no
New feature?yes
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRn/a

I have a need to know what triggerdecorators are used and what thereal trigger is.

This PR adds anAbstractTriggerDecorator that the current decorators (Jitter &ExcludeTime) extend.

$trigger =newExcludeTimeTrigger(newJitterTrigger(CronExpressionTrigger::fromSpec('#midnight',newMyMessage()));$trigger->inner();// CronExpressionTrigger$trigger->decorators();// [ExcludeTimeTrigger, JitterTrigger]

@fabpot
Copy link
Member

Can you tell use more about your use case?

@kbond
Copy link
MemberAuthor

Sure!

  1. I'm building a scheduler dashboard and would like to translate cron strings to a human readable format. I need to find the inner-most trigger to do this.
  2. A scheduler monitoring service I'm building an integration for only supports cron expressions. It's ok to use with a jitter wrapped cron, but not an exclude time wrapped cron.

@fabpot
Copy link
Member

Thank you@kbond.

@fabpotfabpot merged commit62904a6 intosymfony:6.4Jul 31, 2023
@kbondkbond deleted the decorated-trigger branchJuly 31, 2023 12:19
This was referencedOct 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@OskarStarkOskarStarkOskarStark approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

4 participants
@kbond@fabpot@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp