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

Add Job management #530

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Add Job management #530

merged 4 commits into from
Feb 29, 2024

Conversation

Joris29
Copy link
Contributor

@Joris29 Joris29 commented Feb 26, 2024

Pull Request (PR) description

This PR adds a way to manage jobs through cli and adds a parameter to notify cli connection check

This Pull Request (PR) fixes the following issues

Fixes #33
Fixes #458

Copy link

@witjoh witjoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me

Add param to notify connection check when rundeck::service is changed
files/rd_job_diff.sh Outdated Show resolved Hide resolved
@Joris29 Joris29 force-pushed the job_management branch 4 times, most recently from 1be6e72 to efae965 Compare February 26, 2024 13:21
@Joris29
Copy link
Contributor Author

Joris29 commented Feb 26, 2024

@bastelfreak tests failing due to: read timeout reached
Anything i can do about it?

Copy link
Member

@smortex smortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor shell suggestions. Regarding CentOS 8, I guess we can ignore this 😒

files/rd_job_diff.sh Outdated Show resolved Hide resolved
Comment on lines 12 to 13
diff "$path" "$temp_file" &> /dev/null
DIFF_STATUS=$?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can rely on cmp(1) to silently compare files instead of generating a diff only to discard it.

Suggested change
diff "$path" "$temp_file" &> /dev/null
DIFF_STATUS=$?
cmp -s "$path" "$temp_file"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the script do you like this approach better?

types/project.pp Outdated Show resolved Hide resolved
types/job.pp Outdated Show resolved Hide resolved
@bastelfreak bastelfreak merged commit 59880bb into voxpupuli:master Feb 29, 2024
30 checks passed
@bastelfreak bastelfreak added the enhancement New feature or request label Feb 29, 2024
@Joris29 Joris29 deleted the job_management branch March 5, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type/provider for managing jobs
4 participants