Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Fix CLI commands, update Scheduler::run() #52

Merged
merged 7 commits into from
Nov 26, 2021
Merged

Fix CLI commands, update Scheduler::run() #52

merged 7 commits into from
Nov 26, 2021

Conversation

ditsuke
Copy link
Collaborator

@ditsuke ditsuke commented Nov 24, 2021

References

joomla/joomla-cms#35143 (comment)
joomla/joomla-cms#35143 (comment)

Summary of Changes

Testing Instructions

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

- Scheduler::run() now uses an options array backed by the Symfony
  OptionsResolver.
- Offers a new option that allows for execution concurrency (this was
  specifically required by the CLI command).
Updates Schedulerunner for changes in Scheduler::run()
- Null safety against Tasks.
- More informative stderr log on lock acquisition failures.
- Now allows concurrency so Web doesn't block out CLI anymore (thanks
  to the updates in Scheduler::run()).

Refs: joomla/joomla-cms#35143#issuecomment-976391914
      / @alikon
      / @bembelimen
- Better (expectedly safer) flow of logic with attempts to get the
  logical/enumerated state from command mode and interactive modes.
- Terminate on invalid command invocation.
- Fix exit success message (did not show action).
- Better formatting of description, etc.
- Code-style fixes.

Refs: joomla/joomla-cms#35143#issuecomment-977608144
      / @alikon
      / @bembelimen
Minor improvement to `scheduler:run` description for consistency.
- Adds state enumerations and map.
- Adds basic static state and id validators.
- Fix use of un-imported Text class, $->getMessage() call.
- Better validation and improved consistency.
- Removes now redundant state enumerations, mapping and validators
  which the Task class offers.
@ditsuke ditsuke merged commit 67bcba9 into dcon Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant