Arne Beer
6c5ab4d244
Clean up state reset and log handling
2020-05-15 17:55:49 +02:00
Arne Beer
e8f80973a8
Cargo fmt
2020-05-14 14:54:36 +02:00
Arne Beer
9436819418
Add -d to 'kill' and improve -a behavior for 'start', 'pause' and 'kill'
2020-05-14 14:45:34 +02:00
Arne Beer
0dc29184ea
Rename show to follow and respect read_local_logs
2020-05-13 22:18:36 +02:00
Arne Beer
145e64a917
Docs and formatting
2020-05-13 20:31:40 +02:00
Arne Beer
a4e09faf6e
Start and pause groups
2020-05-13 19:11:17 +02:00
Arne Beer
9118318c85
Catch environment variables for tasks
2020-05-12 20:25:08 +02:00
Arne Beer
209b00d83c
Fmt
2020-05-11 19:14:10 +02:00
Arne Beer
daf221a74f
Clippy fixes
2020-05-11 19:10:05 +02:00
Arne Beer
28e8b6d7b2
Add group to callback template
2020-05-11 14:02:08 +02:00
Arne Beer
fa71007404
Command for managing groups
2020-05-11 02:14:02 +02:00
Arne Beer
dafa4623ee
Code and comment refactoring
2020-05-11 01:30:29 +02:00
Arne Beer
818d95fc15
Basic groups
2020-05-11 00:49:51 +02:00
Arne Beer
194f7510e5
Small refactorings
2020-05-10 19:59:17 +02:00
Arne Beer
c1067dfc2d
Put State reference back into TaskHandler
2020-05-10 19:50:56 +02:00
Arne Beer
b86d770df5
Set log level to error for callback errors
2020-05-10 00:21:21 +02:00
Arne Beer
c45e00c4e1
Callbacks when finishing tasks
...
This also refactors the data structure of the TaskHandler.
State is no longer a member, but rather an argument that's continously
passed through in the `run` function.
2020-05-10 00:10:45 +02:00
Arne Beer
bdbc5256d3
Rename temp folder to task_logs
2020-05-01 22:29:07 +02:00
Arne Beer
b5b43ba5b4
Use anyhow bail!
2020-05-01 21:44:38 +02:00
Arne Beer
9700773bb6
Add option for clients to read logs from disk
2020-05-01 21:39:20 +02:00
Arne Beer
e1e66f9251
Use bincode for transport and snap for in-memory compression
2020-04-30 22:56:06 +02:00
Arne Beer
01eadeb473
Using brotli
2020-04-30 21:09:24 +02:00
Arne Beer
6a6a2f09d8
Process output no longer storeed in memory
2020-04-30 13:56:21 +02:00
Arne Beer
11cd8adc41
Task refactoring
2020-04-27 01:55:15 +02:00
Arne Beer
f21992d75c
Add dependencies to 'status' and do some refactoring
2020-04-26 15:29:01 +02:00
MATILLAT Quentin
77bf9b0318
Improve comment / function name
2020-04-15 09:33:51 +01:00
MATILLAT Quentin
33d1d7cc9e
Cascade error for dependent tasks
2020-04-11 18:58:42 +01:00
MATILLAT Quentin
9f41ca8e75
Add a dependencies system
2020-04-10 21:40:11 +01:00
Arne Beer
44be4670f0
Fix start time of tasks. Fixes #80
2020-04-09 21:03:22 +02:00
Arne Beer
49c3e6ff6a
Only send needed logs and refactor some code
2020-04-03 16:04:48 +02:00
Arne Beer
774cf61598
Message struct cleanup
2020-04-03 15:11:57 +02:00
Arne Beer
2e7316d814
Save state after adding a task
2020-03-31 18:24:36 +02:00
Arne Beer
99f08c9730
Add editing of task's paths
2020-03-28 18:54:40 +01:00
Arne Beer
de3239d1fc
Add --stashed flag to restart
2020-03-28 01:29:02 +01:00
Arne Beer
ed3de4c8c6
Add pause_on_failure flag
2020-03-28 00:38:06 +01:00
Arne Beer
3638f6562f
Fix: Remove 'Killed' tasks on 'clean'
2020-03-27 13:36:05 +01:00
Arne Beer
b46ff01a94
Fix edit command
2020-03-25 21:58:42 +01:00
Arne Beer
4e79f0c6c2
Allow locked tasks to be stashed
2020-03-25 21:37:20 +01:00
Arne Beer
aa5bc49513
Properly handle client disconnect
2020-03-25 21:32:08 +01:00
Arne Beer
be09348efd
Fix wrong state restorations after restart
2020-03-25 21:20:26 +01:00
Arne Beer
649aa0438f
Move completion file logic to subcommand
2020-03-25 19:15:29 +01:00
Arne Beer
1914384e76
Refactor some ugly code and remove unused code
2020-03-13 14:27:41 +01:00
Taylor Everding
aebb07b107
Run cargo fmt
...
The one true way to format rust code is `rustfmt`. This runs applies it
to all the code.
2020-03-12 19:11:33 -06:00
Taylor Everding
a32256c8a0
Include enqueue time in some daemon messages
...
By including the enqueue time in some daemon messages, the user can
avoid running the status command to find out when the task was actually
scheduled.
2020-03-12 18:52:49 -06:00
Taylor Everding
5e5f7ffeb1
Unstash delayed tasks if their delay is past
2020-03-12 18:07:13 -06:00
Taylor Everding
cd66bbb6a4
Support enqueue_at in enqueue messages
...
...in preparation for delayed enqueuing.
2020-03-12 18:07:13 -06:00
Taylor Everding
99ae892a31
Handle enqueue_at in add messsages
...
...in preparation for delayed enqueuing.
2020-03-12 18:07:13 -06:00
Taylor Everding
3b5d89546f
Add --stash flag to pueue add
...
If the queue is empty and the user adds a task, the deamon will start it
at its convince. This is faster than most people can type. However, if
the user wants it to be stashed, they missed their opportunity. By
adding a `--stash` flag, the user can specify the task should be created
in the stashed state allowing them to `pueue enqueue` them at a future
time.
Since it does not make sense to specify both `--immediate` and
`--stash`, I marked the options as conflicting.
2020-02-23 14:00:10 -07:00
Arne Beer
38e2720a29
Move log module from shared into daemon
2020-02-02 12:41:51 +01:00
Lej77
a74f9bc88b
Use powershell instead of cmd for windows tasks
2020-02-02 06:37:57 +01:00