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

rake task with custom workflow #315

Open
ashrafalzyoud opened this issue May 24, 2023 · 3 comments
Open

rake task with custom workflow #315

ashrafalzyoud opened this issue May 24, 2023 · 3 comments
Labels

Comments

@ashrafalzyoud
Copy link

ashrafalzyoud commented May 24, 2023

hi all

how i can configure rake task to run custom workflow id =2 only?
how i can configure rake task without execute any of custom workflow scripte?

@picman picman added the question label Jun 1, 2023
@picman
Copy link
Collaborator

picman commented Jun 1, 2023

I think that you can manipulate with custom workflows assigned to the project. E.g. remove CW1 from the project, run some issues' updates and add CW1 back to the project.
project.custom_workflows

@ashrafalzyoud
Copy link
Author

@picman thx for your answer

But I need the CW1 execute
And I need task execute everyday in midnight

It's nice future if besides active also periodic task

Because custom workflow execute only before and after save

@picman
Copy link
Collaborator

picman commented Jul 14, 2023

As I have already written, in your rake task:

  1. Remove workflows from the project or leave there just CW1 (project.custom_workflows)
  2. Do what you need
  3. Re-add removed workflows back to project (project.custom_workflows)
    I don't suppose that the whole task is run for more than a few milliseconds. So, if you run it at midnight, the manipulation with attached workflows to the project shouldn't be a problem, I think.

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