Bug 2225447 - Add single or inverted quotes in Long running tasks $cron command
Summary: Add single or inverted quotes in Long running tasks $cron command
Keywords:
Status: RELEASE_PENDING
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.14.0
Assignee: Adam Lazik
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-25 10:23 UTC by Avnish Kumar
Modified: 2023-08-17 11:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19130 0 None None None 2023-07-25 10:24:12 UTC

Description Avnish Kumar 2023-07-25 10:23:40 UTC
Document URL: Red Hat Satellite 6.14 release notes

Section Number and Name: Chapter 2. New features

Describe the issue: Without single or inverted quotes in Long running tasks $cron command fails with the error "ArgumentError: invalid cron string"

~~~~
You can reschedule the task by running foreman-rake foreman_tasks:reschedule_long_running_tasks_checker FOREMAN_TASKS_CHECK_LONG_RUNNING_TASKS_CRONLINE=$cron. 

Replace $cron with a cronline describing the new schedule.
~~~

Suggestions for improvement: Add single or inverted quotes in Long running tasks $cron command

~~~~
You can reschedule the task by running foreman-rake foreman_tasks:reschedule_long_running_tasks_checker FOREMAN_TASKS_CHECK_LONG_RUNNING_TASKS_CRONLINE='$cron'. 

Replace $cron with a cronline describing the new schedule.
~~~

OR

~~~~
You can reschedule the task by running foreman-rake foreman_tasks:reschedule_long_running_tasks_checker FOREMAN_TASKS_CHECK_LONG_RUNNING_TASKS_CRONLINE="$cron". 

Replace $cron with a cronline describing the new schedule.
~~~

Additional information: Also we can simply add an example.

Comment 2 Marie Hornickova 2023-07-31 17:51:49 UTC
Hello,
Many thanks for this suggestion for improvement of RH Satellite 6.14 Release Notes. 
The documentation team will inform in this ticket once it is implemented.
Thank you!

Comment 3 Adam Lazik 2023-08-01 10:24:30 UTC
Hi!
Quotes fixed in the original ticket: https://issues.redhat.com/browse/SAT-17519
Currently waiting for changes to propagate into Pantheon to link preview.


Note You need to log in before you can comment on or make changes to this bug.