Coder Social home page Coder Social logo

southbridgeio / redmine_recurring_tasks Goto Github PK

View Code? Open in Web Editor NEW
40.0 16.0 15.0 130 KB

Plugin for creating scheduled tasks from templates

Home Page: http://www.redmine.org/plugins/redmine_recurring_tasks

License: MIT License

Ruby 72.40% HTML 23.87% Shell 3.73%
redmine redmine-plugin

redmine_recurring_tasks's Introduction

Rate at redmine.org

Redmine Recurring Tasks

Build Status

Русская версия

Plugin for creating scheduled tasks from templates.

Installation

  • Ruby 2.2+
  • Redmine 3.3+
  • Standard plugin installation:
cd {REDMINE_ROOT}
git clone https://github.com/southbridgeio/redmine_recurring_tasks.git plugins/redmine_recurring_tasks
bundle install
bundle exec rake redmine:plugins:migrate RAILS_ENV=production

Usage

To use the plugin, you should turn on it in project modules settings. Then you need to go at issue page and you will see Schedule section with "Add" link, which leads you to recurring settings.

Run

To run scheduling task you should run rake task

cd {REDMINE_ROOT}
bundle exec rake redmine_recurring_tasks:exec RAILS_ENV=production

And to do it periodically you may use cron or another external scheduler.

Schedulers

Sidekiq-cron

To run sidekiq-cron tasks you should:

  • Install redis (yum install redis)
  • Install plugin redmine_sidekiq
  • Then you can add initialization file. For example
# /opt/redmine/config/initializers/zz-cron.rb

class RecurringTaskWorker
  include Sidekiq::Worker

  def perform
    checker = RedmineRecurringTasks::IssueChecker.new(Setting.plugin_redmine_recurring_tasks)
    checker.call
  end
end

cron_job_array = [
  {
    'name'  => 'Weekly schedule worker',
    'class' => 'RecurringTaskWorker',
    'cron'  => '*/5 * * * *'
  }
]

Sidekiq::Cron::Job.load_from_array cron_job_array

Whenever

cd {REDMINE_ROOT}
whenever --update-crontab --load-file plugins/redmine_recurring_tasks/config/schedule.rb

Cron manual

$ crontab -e

And add cron job line

*/5 * * * * /bin/bash -l -c 'cd /home/redmine && RAILS_ENV=production bundle exec rake redmine_recurring_tasks:exec'

Settings

If you have any plugins, which for some reason doesn't copying in spawned issues, you can set specific issue associations fields in plugin settings. But be careful — this option can break work plugin scheduler.

For example, if you using plugin Redmine checklists, you can check "checklists" in RedmineRecurringTasks settings.

License

MIT

Author of the Plugin

The plugin is designed by Southbridge

redmine_recurring_tasks's People

Contributors

constxife avatar dmitrygusakov avatar evgenykungurov avatar olemskoi avatar retoc avatar victorbsi avatar vladislav-yashin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_recurring_tasks's Issues

issue with the recurring task

Hello Team,

We have been using this plugin in our environment, it was working fine till now, Now we are facing two issues.

  1. The recurring task are set for 10 am every morning , but they all run at 09:33 am , even in Database it is showing same.
  2. It is creating 3-4 task every morning 10 am for a single task .
    Can you help me in Debugging it, or explain a way , i can i fix this.

Spec failed

When doing

RAILS_ENV=production bundle exec rake redmine_recurring_tasks:exec

to test.

The output is:

spec failed.
[DEPRECATION] last_comment is deprecated. Please use last_description instead.
[DEPRECATION] last_comment is deprecated. Please use last_description instead.

Maybe you can give me a hint on where to investigate the error.

EDIT:

After adding "rspec-core" to the redmine gemfile.

The spec no longer fails.
Output is now, 3 lines of

[DEPRECATION] last_comment is deprecated. Please use last_description instead.

Any hint on where to check why nothing is happening?

Problems with Gemfile using git behind firewall

I have a server that is isolated from the internet, but has access to rubygems.org via a proxy. I am unable to use git to download gems.

The use of git for the source is causing me some issues, as "bundle install" fails when it cannot connect using GIT, so it would be appreciated if you could instead just specify a version for the deep_clonable gem

Recurring task does not copy all attributes of issue

I would assume, and I obviously I am wrong, that the recurring task plugin would use the copy issue function available in redmine core as used by the UI when selecting the copy link at the top of an issue, and then adjust due dates according to the schedule. However copying a task from the UI copies all attributes of an issue, including attributes and fields added by other plugins, for example issue checklists added by the issue checklist plugin, while the recurring tasks plugin seems to recreate the issue, including only core functionaility, losing other attributes and fields in the process. I have recurring tasks that I would like to integrate checklists into. PM tasks to be specific. They have a checklist of items that must be addressed each day/week/month/etc.. Is there any way to include these fields and attributes added by these other plugins? Recurring tasks is functionaility that we will be very much dependant on, however this is a bit of a deal breaker for us, and I am sure it creates quite a restriction on other users as well.

create multiple tasks when trigger it

Hello,

Today triggered, redmine_recurring_tasks from crontab and repeat same task in a 3-4 hours.

Normally i hope create only a task when trigger the crontab, but now i have seen; in 3-4 hours, 5 mins period created multiple same tasks why ?

by the way i didnt see, scheduled tasks ! how can i check, which tasks are scheduled ?

The problem with installing the plugin

My Redmine data:

Environment:
  Redmine version                5.0.5.stable.22274
  Ruby version                   3.0.2-p107 (2021-07-07) [x86_64-linux-gnu]
  Rails version                  6.1.7.4
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Purplemine2-master
SCM:
  Subversion                     1.14.1
  Git                            2.34.1
  Filesystem                     
Redmine plugins:
  mega_calendar                  1.9.3
  redmine_agile                  1.6.5
  redmine_checklists             3.1.22
  redmine_contacts               4.3.7
  redmine_hide_sidebar           4.0.0
  redmine_people                 1.6.3
  redmine_theme_changer          0.6.0
  redmine_wktime                 4.7
  redmine_work_time              0.4.1

After executing - "bundle install" I get the following error:

bundle install
Your Gemfile lists the gem redmine_crm (>= 0) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Your Gemfile lists the gem vcard (>= 0) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Fetching https://github.com/moiristo/deep_cloneable.git
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

Because every version of deep_cloneable depends on activerecord >= 3.1.0, < 6
  and rails >= 6.1.7.4, < 7.0.0.alpha1 depends on activerecord = 6.1.7.4,
  every version of deep_cloneable is incompatible with rails >= 6.1.7.4, < 7.0.0.alpha1.
So, because Gemfile depends on rails = 6.1.7.4
  and Gemfile depends on deep_cloneable >= 0,
  version solving has failed.

Please help to solve the problem

Sending mail on task recurrence

Hello,

Really nice plugin, that works even wth newest versions of Redmine !

It would be great if the plugin could send mail when cloning a task, as it is the case when creating a new task.

Regards,

Redmine 4.1 issue

bundle exec rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
NoMethodError: undefined method attr_accessible' for #<Class:0x000055556080c090> Did you mean? attr_accessor /opt/bitnami/apps/redmine/htdocs/plugins/recurring_tasks/app/models/recurring_task.rb:7:in class:RecurringTask'
/opt/bitnami/apps/redmine/htdocs/plugins/recurring_tasks/app/models/recurring_task.rb:1:in <top (required)>' /opt/bitnami/apps/redmine/htdocs/config/environment.rb:16:in <top (required)>'
/opt/bitnami/apps/redmine/htdocs/plugins/recurring_tasks/lib/tasks/recurring_tasks.rake:7:in <top (required)>' /opt/bitnami/apps/redmine/htdocs/lib/tasks/redmine.rake:202:in block in <top (required)>'
/opt/bitnami/apps/redmine/htdocs/lib/tasks/redmine.rake:202:in each' /opt/bitnami/apps/redmine/htdocs/lib/tasks/redmine.rake:202:in <top (required)>'
/opt/bitnami/apps/redmine/htdocs/Rakefile:7:in <top (required)>' /opt/bitnami/ruby/bin/bundle:23:in load'
/opt/bitnami/ruby/bin/bundle:23:in `

'
(See full trace by running task with --trace)

Автор задачи Аноним

Логичнее было бы копировать автора. Либо добавить в настройки возможность указать автора.

Simple Questions about README

Dear Developers / @vladislav-yashin ,

many thanks for developing this very useful plugin!

I have some very simple questions [1] about usage of this plugin
in redmine 4.0.2 (the first two questions are most important, please
answer these!!):

  • will (manual) installation of this plugin prevent future updates of
    redmine (i.e. 5.x)? Is it possible to disable the plugin if it does
    not work after an update?

  • I think I shall run all commands as root (my /usr/share/redmine
    = {REDMINE_ROOT} is root-owned), even if redmine runs as www-data
    (Debian/Ubuntu package)?

  • feedback: the schedule buttons are only there when logging in as
    admin user, is this intended?

  • feeback: I made it work by checking [x] anonymous user in the prefs,
    and of course anon needs access to the project (this is missing in
    the readme); Also there is a tz/CEST issue: if I schedule at 0:00
    it runs at 01:00.

Or is there another project that has similar functionality and/or forks this one?

[1] https://redmine.org/boards/3/topics/68493

Felix

How to to find recurring settings in the cloned task?

Hello

If I'm at the initial task it's clear how/where to find the recurring settings - section Schedule.
But how to find recurring settings if the initial task was cloned and I'm at the new cloned task, section Schedule is empty in this case?

Also is it possible somehow to get the list of all recurring tasks for the current user, for example?

Best regards
Alexey

Ошибки после удаления задачи

Если удалить задачу у который были заданы "повторы", при выполнении

$ RAILS_ENV=production bundle exec rake redmine_recurring_tasks:exec

Вот такой трейс

undefined method `author' for nil:NilClass
/home/redmine/web/rm.rubium.ru/public_html/plugins/redmine_recurring_tasks/lib/tasks/process.rake:14:in `block (3 levels) in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:51:in `each'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:51:in `block in find_each'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:124:in `find_in_batches'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.7.1/lib/active_record/relation/batches.rb:50:in `find_each'
/home/redmine/web/rm.rubium.ru/public_html/plugins/redmine_recurring_tasks/lib/tasks/process.rake:7:in `block (2 levels) in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:in `each'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/home/redmine/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:108:in `block (2 levels) in top_level'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:108:in `each'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
/home/redmine/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.3.3/bin/rake:22:in `load'
/home/redmine/.rvm/gems/ruby-2.3.3/bin/rake:22:in `<main>'
/home/redmine/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
/home/redmine/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'

Schedule!

Hi! Can you add a more understandable schedule. Did not found how to get a schedule for every 5th December of the year for example. Thank you!

Cant create new task

Hello!

Redmine version 4.0.6.stable
Ruby version 2.7.0-p0 (2019-12-25) [x86_64-linux-gnu]
Rails version 5.2.3

When i run bundle exec rake redmine_recurring_tasks:exec RAILS_ENV=production

I got this, and no new issue created/ Can you help me pls?

/usr/share/rubygems-integration/all/gems/activerecord-5.2.3/lib/active_record/associations.rb:1855: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/rubygems-integration/all/gems/activerecord-5.2.3/lib/active_record/associations.rb:1368: warning: The called method has_many' is defined here /usr/share/rubygems-integration/all/gems/activemodel-5.2.3/lib/active_model/type/integer.rb:13: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/activemodel-5.2.3/lib/active_model/type/value.rb:8: warning: The called method initialize' is defined here
/usr/share/rubygems-integration/all/gems/activerecord-5.2.3/lib/active_record/connection_adapters/mysql/database_statements.rb:12: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/rubygems-integration/all/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/query_cache.rb:95: warning: The called method select_all' is defined here /usr/share/redmine/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/activerecord-5.2.3/lib/active_record/associations.rb:1368: warning: The called method has_many' is defined here
/usr/share/rubygems-integration/all/gems/actionpack-5.2.3/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/rubygems-integration/all/gems/actionpack-5.2.3/lib/action_dispatch/middleware/static.rb:111: warning: The called method `initialize' is defined here

compatability problems with version 5.0.2

Hi all,

I just updated my redmine installation to version 5.0.2 and it seems like this plugin is not compatible with it. I changed the version of deep_clonable to 3.2.0 as the used reference was not compatible with rails 6.1.6. Bundle install was succesfull but during db migration I received
"LoadError: cannot load such file -- redmine_recurring_tasks"

Was anybody able to use this plugin with 5.0.x already?

Debian не удаётся запустить плагин

# Logfile created on 2018-10-18 10:15:07 +0700 by logger.rb/v1.2.7
E, [2018-10-18T10:15:07.861992 #30323] ERROR -- : Validation failed: Taggings is invalid
E, [2018-10-18T10:15:07.862099 #30323] ERROR -- : /var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/validations.rb:79:in `rais
e_record_invalid'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/validations.rb:43:in `save!'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/attribute_methods/dirty.rb:29:in `save!'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:291:in `block in save!'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transac
tion'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in `transaction'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
/var/lib/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:291:in `save!'
/var/www/redmine/plugins/redmine_recurring_tasks/app/models/recurring_task.rb:120:in `tap'
/var/www/redmine/plugins/redmine_recurring_tasks/app/models/recurring_task.rb:120:in `copy_issue'
/var/www/redmine/plugins/redmine_recurring_tasks/app/models/recurring_task.rb:126:in `execute'
/var/www/redmine/plugins/redmine_recurring_tasks/lib/redmine_recurring_tasks/issue_checker.rb:16:in `block in call'
/var/www/redmine/plugins/redmine_recurring_tasks/lib/redmine_recurring_tasks/issue_checker.rb:14:in `each'
/var/www/redmine/plugins/redmine_recurring_tasks/lib/redmine_recurring_tasks/issue_checker.rb:14:in `call'
/var/www/redmine/plugins/redmine_recurring_tasks/lib/tasks/process.rake:5:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/task.rb:251:in `block in execute'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/task.rb:251:in `each'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/task.rb:251:in `execute'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/task.rb:195:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/task.rb:181:in `invoke'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:160:in `invoke_task'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:116:in `each'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:116:in `block in top_level'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:125:in `run_with_threads'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:110:in `top_level'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:83:in `block in run'
/var/lib/gems/2.3.0/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'

Всё перепробовали, не знаем куда копать :(

Schedule section not appearing on issues

Followed the installation instructions and enabled the "Redmine Recurring Tasks" for a project. The promised "schedule" section is not appearing on any tickets.

Environment:

  • Redmine version: 4.0.5.stable
  • Ruby version: 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
  • Rails version: 5.2.3
  • Database adapter: PostgreSQL

Redmine plugins:

  • redmine_recurring_tasks: 0.3.3

Create a recurring task

I installed the plugin, i can see it in the Admin section and I can change the setting. I also can enable the plugin in the project settings. And I run the cronjob.

But when I create or edit an issue, I do not see anything that points to a recurring task. How do I create one?

(that would be really useful in the README.md)

Error after upgrading Redmine to 3.4.4

Hi. I'm getting a fatal error when trying to access to "schedule" menu:

image

image

image

This started to happen after upgrading Redmine. Current version:

image

Any help will be really appreciated. Thank you

No way to see the plugin in action

I've already installed the plugin successfully on a Redmine 3.3.3. I can see the plugin in Admin options. I can activate the plugin in the projects.
But after being activated in a project, I cannot see the way to configure or create any recurring issue.

ERROR: Failed to save the record

The following error occurs when trying to copy issues via the recurring task that is added to Sidekiq:

E, [2023-07-06T14:15:03.025403 #7314] ERROR -- : Failed to save the record
E, [2023-07-06T14:15:03.026311 #7314] ERROR -- : /usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/persistence.rb:308:in `save!'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/validations.rb:52:in `save!'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/transactions.rb:315:in `block in save!'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/transactions.rb:212:in `transaction'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/transactions.rb:315:in `save!'
/usr/local/rvm/gems/ruby-2.7.8/gems/activerecord-5.2.8.1/lib/active_record/suppressor.rb:48:in `save!'
/www/redmine/plugins/redmine_recurring_tasks/app/models/recurring_task.rb:141:in `tap'
/www/redmine/plugins/redmine_recurring_tasks/app/models/recurring_task.rb:141:in `copy_issue'
/www/redmine/plugins/redmine_recurring_tasks/app/models/recurring_task.rb:147:in `execute'
/www/redmine/plugins/redmine_recurring_tasks/lib/redmine_recurring_tasks/issue_checker.rb:16:in `block in call'
/www/redmine/plugins/redmine_recurring_tasks/lib/redmine_recurring_tasks/issue_checker.rb:14:in `each'
/www/redmine/plugins/redmine_recurring_tasks/lib/redmine_recurring_tasks/issue_checker.rb:14:in `call'
/www/redmine/config/initializers/40-recurring_tasks.rb:6:in `perform'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:192:in `execute_job'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:165:in `block (2 levels) in process'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
/usr/local/rvm/gems/ruby-2.7.8/bundler/gems/sidekiq-failures-2b30cb1c87ce/lib/sidekiq/failures/middleware.rb:9:in `call'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/middleware/chain.rb:133:in `invoke'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:164:in `block in process'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/job_retry.rb:109:in `local'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/rails.rb:43:in `block in call'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/execution_wrapper.rb:90:in `wrap'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/reloader.rb:73:in `block in wrap'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/execution_wrapper.rb:90:in `wrap'
/usr/local/rvm/gems/ruby-2.7.8/gems/activesupport-5.2.8.1/lib/active_support/reloader.rb:72:in `wrap'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/rails.rb:42:in `call'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:250:in `stats'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/job_logger.rb:8:in `call'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/job_retry.rb:74:in `global'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:125:in `block in dispatch'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/logging.rb:48:in `with_context'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:124:in `dispatch'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:163:in `process'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:83:in `process_one'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/processor.rb:71:in `run'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/util.rb:16:in `watchdog'
/usr/local/rvm/gems/ruby-2.7.8/gems/sidekiq-5.2.10/lib/sidekiq/util.rb:25:in `block in safe_thread'

System info: Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-1 (2021-06-10) x86_64 GNU/Linux

Environment:
  Redmine version                4.2.10.stable
  Ruby version                   2.7.8-p225 (2023-03-30) [x86_64-linux]
  Rails version                  5.2.8.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Git                            2.20.1
  Filesystem                     
Redmine plugins:
  additional_tags                1.0.3
  additionals                    3.0.3
  clipboard_image_paste          1.13
  redmine_2chat                  0.4.0
  redmine_bots                   0.5.0
  redmine_contacts               4.3.4
  redmine_contacts_helpdesk      4.1.10
  redmine_custom_workflows       2.0.9
  redmine_hrm                    3.0.3
  redmine_intouch                1.6.0
  redmine_issue_templates        1.1.0
  redmine_lightbox2              0.5.1
  redmine_more_previews          5.0.8
  redmine_recurring_tasks        0.3.4
  redmine_reporting              3.0.3
  redmine_sidekiq                2.1.0
  redmine_toggl                  1.1.0

UPD: Sometimes the error doesn't show up in the logs but no issues are created anyway.
UPD2: Seems like running the cron job under root user works fine, but under redmine it does not, very weird.

DST issue

Hello,

Since the changeover to daylight saving time, recurring tickets are generated one hour late.

The hosting server (RHEL 7.5) is well configured: CEST, DST active, see :

# timedatectl
      Local time: mer. 2020-04-01 14:23:21 CEST
  Universal time: mer. 2020-04-01 12:23:21 UTC
        RTC time: mer. 2020-04-01 12:23:21
       Time zone: Europe/Paris (CEST, +0200)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  dim. 2020-03-29 01:59:59 CET
                  dim. 2020-03-29 03:00:00 CEST
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  dim. 2020-10-25 02:59:59 CEST
                  dim. 2020-10-25 02:00:00 CET

In the Schedule panel, I can see the CEST time zone (near hour/minutes menus), but the tickets scheduled at 17:00 are generated at 18:00 local time. (see attached file).
2020-04-01 14_43_34-Redmine DIP

All times are correctly displayed in Redmine.
Here is the information of the Redmine server :

Environment:
  Redmine version                4.1.0.stable
  Ruby version                   2.5.7-p206 (2019-10-01) [x86_64-linux]
  Rails version                  5.2.4.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.13.0
  Git                            2.19.1
  Filesystem                     
Redmine plugins:
  redmine_checklists             3.1.17
  redmine_recurring_tasks        0.3.4

This problem is really crippling, I hope I won't have to tinker with the schedule of several dozen tickets, twice a year.

I hope you can come up with a solution.

Thank you in advance for your interest

Support more recurring option

Hi,

Is it possible to support more recurring options to align with Scrum sprint time? For example, I want to spawn new tasks automatically to handle work for sprint planning, sprint retrospective, sprint review every 2 weeks for 2-week sprint?

Thanks a bunch.
Nora.

Translation german, de

May I contribute in adding a german translation.
Do you have guidelines or shall I just translate the en.yml out of conf folder and give it back to you?

What exactly needs to be configured to activate the localization?
Or is there a translation that I don't know of.

Unable to see Schedule / Calendar button in issue Creation

Hi,

I followed the readme and installed the plugin + cron successfully. I edited my project settings to enable the recurring task module, but i don't see any schedule section in the issue creation form.

I also set the permissions for my role to be able to do the recurring tasks actions.

Do you know what i am missing ?

I'm using the plugin over a french translation version of redmine with these settings :

Environment:
Redmine version 3.3.4.stable
Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
redmine_agile 1.4.4
redmine_checklists 3.1.10
redmine_messenger 0.9.9
redmine_recurring_tasks 0.2.2
redmine_redsun 2.1.1

How to list recurred/scheduled task?

Hello,

I have to implemented recurring tasks plugin for redmine and scheduled some of tasks and will recure it but i don’t know; how can i list or check or cancel or monitor for scheduled tasks ?

Many thanks for your help

Mutlu

Problem with sameersbn/docker-redmine:4.0.3 docker image

I'm trying use recurring_tasks plugin with sameersbn/docker-redmine:4.0.3 docker image with no success.

When i add a new recurring_task i got this error 500:

POST "/recurring_tasks" for 138.118.128.2 at 2019-05-29 13:12:43 -0300
Processing by RecurringTasksController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"VdqHBEQkkFPmfO0kD/bt5ZUVlDWEDcdNp4bEKkIRdSgC3L9N43Kfa1/brEen/xYNWFUd1Oa/QSHhWgozeW4A3Q==", "issue_id"=>"46459", "recurring_task"=>{"tracker_id"=>"41", "time(1i)"=>"2000", "time(2i)"=>"1", "time(3i)"=>"1", "time(4i)"=>"02", "time(5i)"=>"00", "months"=>["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], "client_run_type"=>"week_days", "monday"=>"0", "tuesday"=>"0", "wednesday"=>"0", "thursday"=>"0", "friday"=>"0", "saturday"=>"0", "sunday"=>"0"}, "commit"=>"Adicionar"}
  Current user: robson.mantovani (id=24)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 4.0ms)

ActiveRecord::MultiparameterAssignmentErrors (1 error(s) on assignment of multiparameter attributes [error on assignment [2000, 1, 1, 2, 0] to time (undefined method `utc' for {1=>2000, 2=>1, 3=>1, 4=>2, 5=>0}:Hash)]):

plugins/redmine_recurring_tasks/app/controllers/recurring_tasks_controller.rb:18:in `create'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

GMT Timezone Difference

I installed the plugin in the sameersbn/redmine container which works fine,
just to let others know, since cron is not available in the official redmine image.

One problem still exists:
The schedule's time seems to be GMT so all scheduled issues are created at selected time in GMT, which renders to be something else on the surface.

Is there a way to configure this?

new tasks - does not created

bundle exec rake redmine_recurring_tasks:exec RAILS_ENV=production - nothing happens
Screenshot 2019-12-05 at 18 49 45
Screenshot 2019-12-05 at 18 49 29

I had tried - open task with schedule / closed task with schedule

Redmine 4.0.5.stable
Redmine plugins:
redmine_checklists 3.1.16
redmine_recurring_tasks 0.3.3

required ruby version

Hello,

is there any information if the plugin works with ruby 2.1.9?
I have seen the requirements but only after installing the plugin.

Would love to know if a ruby upgrade is required.
Cause the plugin already appears in the admin section.

But apart from enabling the module in a project I do see no options / fields / ...
that would allow to create a recurring task.

Any help is appreciated.

Не могу найти "Schedule section"

Добрый день.
Пытаюсь заставить работать ваш плагин с такой конфигурацией:

Environment:
  Redmine version                3.3.0.stable.15842
  Ruby version                   2.3.0-p0 (2015-12-25) [x86_64-linux]
  Rails version                  4.2.7.1
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.8
  Git                            2.11.0
  Filesystem                     
Redmine plugins:
  plantuml                       0.3.0
  redmine_ckeditor               1.1.4
  redmine_lightbox2              0.3.1
  redmine_open_links_in_new_window 0.0.3
  redmine_per_project_formatting 0.0.4
  redmine_recurring_tasks        0.2.0

Плагин установился по вашей инструкции без проблем, он есть в списке модулей редмайна, есть галочка Redmine Recurring Tasks в модулях проекта, но нигде не нахожу описанного в мануале
"Schedule section" хоть стреляйте. Версию плагина брал с мастер ветки.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.