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

Trigger workflow based on the last day of the month #6388

Open
nikolicdragoslav opened this issue Dec 10, 2024 · 2 comments
Open

Trigger workflow based on the last day of the month #6388

nikolicdragoslav opened this issue Dec 10, 2024 · 2 comments
Labels
area/backend Needs backend code changes enhancement New feature or request

Comments

@nikolicdragoslav
Copy link

Feature description

Hello,

Is it possible to support setting dayInMonth as LAST, for example, without setting dayOfWeek, because I don't want to aim for a specific day of the week, I would like to have a possibility of just choosing FIRST or LAST day in the month?

example:

- id: schedule
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "0 11 * * 1"
    conditions:
      - type: io.kestra.plugin.core.condition.DayWeekInMonthCondition
        date: "{{ trigger.date }}"
        # dayOfWeek: "MONDAY"
        dayInMonth: "LAST"

Thank you,
Dragoslav

@nikolicdragoslav nikolicdragoslav added area/backend Needs backend code changes area/frontend Needs frontend code changes enhancement New feature or request labels Dec 10, 2024
@kestrabot kestrabot bot added this to Issues Dec 10, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Dec 10, 2024
@MilosPaunovic MilosPaunovic removed the area/frontend Needs frontend code changes label Dec 10, 2024
@MilosPaunovic
Copy link
Member

I see that we have lastInMonth mentioned in a few places in the codebase, is the requested feature from this issue already existing @loicmathieu?

@tchiotludo
Copy link
Member

Not for now, since dayOfWeek: "MONDAY" is mandatory for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

3 participants