Release of RC1 #7

Merged
abelhooge merged 34 commits from 3-features into master 2020-06-07 13:54:20 +00:00

34 Commits

Author SHA1 Message Date
Abel Hoogeveen 164e7d877c
Finished ControllerHandler into a working state.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2020-06-07 15:47:51 +02:00
Abel Hoogeveen 741845d686
Merge remote-tracking branch 'origin/master' into 3-features
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
# Conflicts:
#	Dockerfile
#	bin/supervisor
#	bin/worker
#	composer.json
#	src/FuzeWorks/Async/Executors/ShellExecutor.php
#	src/FuzeWorks/Async/ShellWorker.php
#	src/FuzeWorks/Async/Supervisors/ParallelSuperVisor.php
#	src/FuzeWorks/Async/TaskStorage/RedisTaskStorage.php
#	src/FuzeWorks/Async/Tasks.php
#	test/bootstrap.php
#	test/mock/Handlers/EmptyHandler.php
#	test/mock/Handlers/TestStopTaskHandler.php
2020-06-06 22:22:35 +02:00
Abel Hoogeveen ee5312fa1b
Started work on making tasks forcefully quit after a maximum time has expired.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
2020-06-06 00:11:27 +02:00
Abel Hoogeveen 20994674a4
Finished tasks are no longer loaded in SuperVisor.
continuous-integration/drone/push Build is passing Details
By adding a parameter in TaskStorage, it is now possible to distinguish between finished and unfinished tasks.
Finished tasks are those tasks that have a status of Task::COMPLETED or Task::CANCELLED. Unfinished tasks are all others.

This allows the SuperVisor to not bother with the mountain of tasks that will be saved during large projects.
2020-06-05 16:35:15 +02:00
Abel Hoogeveen d42e7f23ef
Implemented proper dependencies.
continuous-integration/drone/push Build is passing Details
Dependencies can now pass output to each other using the DependentTaskHandler.
Also fixed some general problems in the Tasks class, for instance the Executor not starting correctly because of problematic parameters.
Also, SuperVisor now sets the output of a Task using the last output of the task, and not the first.
2020-06-05 15:23:21 +02:00
Abel Hoogeveen fc83a931ae
Return all output when providing attempt = 0.
When providing $attempt = 0 at readTaskOutput and readPostOutput, all output shall be returned.
This is the default return. Hence, a lot of tests had to be altered slightly.
2020-06-04 21:58:22 +02:00
Abel Hoogeveen 4f39b0bec3
Changed the way task output and post output is saved.
Redis now saves all output for a task within a hash. This hash contains individual tasks and all its output.
Attempts also start at 1, since that makes most sense for this context. When output is written, the TaskStorage must figure out at which attempt the Task is.
2020-06-04 21:29:37 +02:00
Abel Hoogeveen 902693dbbe
Implemented Parent Handlers.
continuous-integration/drone/push Build is passing Details
Parent Handlers can be stacked to run in succession. Output is transfered as input into the child handler which can continue with it. If the parent Handler fails, all Child handlers also fail.
2020-06-03 17:00:44 +02:00
Abel Hoogeveen 4555957292
Made Handlers an object instead of a string reference.
continuous-integration/drone/push Build is passing Details
Handlers should now be added as objects, adding some flexibility to the developer.
Developers are still cautioned to take great care that Handlers work approriately. Handlers can potentially crash the SuperVisor if not taken good care of.
2020-06-03 11:35:16 +02:00
Abel Hoogeveen d9da4cfc95
Try with only Redis.
continuous-integration/drone/push Build is passing Details
2020-05-26 17:56:15 +02:00
Abel Hoogeveen 5f5718cb72
Made many changes. Fixed race-conditions in test code.
continuous-integration/drone/push Build is failing Details
2020-05-26 16:16:50 +02:00
Abel Hoogeveen db08da8213
Now try while flushing a selected database.
continuous-integration/drone/push Build is failing Details
2020-05-26 13:53:10 +02:00
Abel Hoogeveen 18d702ec26
Try again in the new environment.
continuous-integration/drone/push Build is failing Details
2020-05-26 13:35:07 +02:00
Abel Hoogeveen 1dacc29d86
Maybe Events are the problem?
continuous-integration/drone/push Build is failing Details
2020-05-19 22:19:55 +02:00
Abel Hoogeveen 19f11d9c7e
Fixed DummyTaskStorage persisting outside of the storage.
continuous-integration/drone/push Build is failing Details
Awkward how that could go wrong...
2020-05-19 22:13:47 +02:00
Abel Hoogeveen 5f369c784b
Added TaskModifyEvent.
continuous-integration/drone/push Build is failing Details
Event gets fired when an Event is modified by sending it to TaskStorage::modifyEvent. This allows components to observe changes and report these to the user. Might also be useful to cancel unwanted changes.
2020-05-19 22:07:44 +02:00
Abel Hoogeveen 8bcebfc1c3
Made the Docker image Alpine-based. Should work better when running Async in a Cron environment.
Also removed compatibility with PHP 7.2.
2020-05-19 12:01:48 +02:00
Abel Hoogeveen 72cd7637b5
Implemented many unit tests.
continuous-integration/drone/push Build is passing Details
2020-05-16 19:12:22 +02:00
Abel Hoogeveen 33c81e6c18
Now with coverage
continuous-integration/drone/push Build is passing Details
2020-05-15 21:41:39 +02:00
Abel Hoogeveen e2101bf059
And remove the Redis debug again
continuous-integration/drone/push Build is passing Details
2020-05-15 21:36:20 +02:00
Abel Hoogeveen 99bae3c100
Now?
continuous-integration/drone/push Build is passing Details
2020-05-15 21:34:48 +02:00
Abel Hoogeveen 19c84bc0d6
Temporarily check if Redis works
continuous-integration/drone/push Build is passing Details
2020-05-15 21:33:26 +02:00
Abel Hoogeveen 4639660640
Added separate environments for DummyTaskStorage and RedisTaskStorage.
continuous-integration/drone/push Build is passing Details
System now uses environment variables imported through Docker. See test/config.tasks.php for all environment options available.
2020-05-15 21:19:35 +02:00
Abel Hoogeveen 5145d65d1d
Now try with an added service
continuous-integration/drone/push Build is passing Details
2020-05-15 18:40:45 +02:00
Abel Hoogeveen f1aef62615
Attempt to run a PHPUnit batch
continuous-integration/drone/push Build is passing Details
2020-05-15 18:35:15 +02:00
Abel Hoogeveen 9fa7145593
Try with a modified environment.
continuous-integration/drone/pr Build is failing Details
continuous-integration/drone/push Build is passing Details
2020-05-15 18:30:06 +02:00
Abel Hoogeveen 29c3db2159
Try again
continuous-integration/drone/pr Build is failing Details
continuous-integration/drone/push Build is failing Details
2020-05-15 18:28:17 +02:00
Abel Hoogeveen 3499eed388
Started implementing Drone 2020-05-15 18:26:30 +02:00
Abel Hoogeveen b3982f2b2e
ControllerHandler now works. Next up is a distinction between Task and Process status. 2020-02-19 16:42:35 +01:00
Abel Hoogeveen 820624e180
Started implementing ControllerHandler.
ControllerHandler is a standard utility handler for MVCR Controllers. This allows the user to create a task which is handled by a standardized controller.
Not finished yet! Needs some love.
2020-02-19 00:42:48 +01:00
Abel Hoogeveen b60ac20786
Add 'addTasks' method to `Tasks` class 2020-02-14 15:30:42 +01:00
Abel Hoogeveen f229be0305
Implemented basic RedisTaskStorage.
- Fixed bug where worker is not provided with bootstrap by ShellExecutor.
- Added composer and Redis to Dockerfile
- Added more output to ParallelSuperVisor
2020-02-14 13:49:27 +01:00
Abel Hoogeveen ab198e9ef1
Updated config format. 2020-02-13 14:06:23 +01:00
Abel Hoogeveen 974a381b5a
Implemented changes to binaries. Binaries now accept a 'bootstrap' argument, allowing the developer to load a custom bootstrap from the project they're working on.
This allows Async to run in the same environment as the project it's part of.
2020-02-12 15:28:03 +01:00