You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rpkak d41f60b906
Allows enqueueing by the cli (#1466)
* Allows enqueueing by the cli

#372

* schedule support

* `_` to `-`

* fix flake8

* echo job-id

* Some improvements

 - Description as in python jobs
 - return result
 - quiet mode
 - allows `--boolean` and `--integer`
 - raises errors if not used correctly

* added tests

* add schedule tests

* add retry test

* use click exceptions

* add error test

* add job_func test

* change messages

https://github.com/rq/rq/pull/1466#discussion_r640211128
https://github.com/rq/rq/pull/1466#discussion_r640210850

* Use different format for arguments

View https://github.com/rq/rq/pull/1466#discussion_r650510889

* Add file support

Usage: @filename

* ast.literal_eval support with `#` instead of `:`

* func -> function

Makes error messages more readable

* click Error

* print function string

* add docs

* increase seconds in test

* Update `parse_function_arg`

Add `ParsingMode` enum (https://github.com/rq/rq/pull/1466#discussion_r656676114)
Change error messages (https://github.com/rq/rq/pull/1466#discussion_r656676800, https://github.com/rq/rq/pull/1466#discussion_r656677082)

* `#` to `%`

`#` is the letter for a comment in bash

* Add some tests

(https://github.com/rq/rq/pull/1466#discussion_r656674539, https://github.com/rq/rq/pull/1466#discussion_r656676543)

* Add some tests

* docs: Add some examples

* catch all literal_eval exceptions

There are some edge cases with other exceptions

* remove job_func
(https://github.com/rq/rq/pull/1466#pullrequestreview-690110118)

* edit docs

https://github.com/rq/rq/pull/1466#pullrequestreview-695758691

* format examples

* format examples

`queue.enqueue(path.to.func, args=['abc'])` to `queue.enqueue(path.to.func, 'abc')`

https://github.com/rq/rq/pull/1466#discussion_r673615464

* add examples

https://github.com/rq/rq/pull/1466#discussion_r673658933

* add doc test

https://github.com/rq/rq/pull/1466#discussion_r673659124

* Update index.md

* Update test_cli.py

* Update test_cli.py

* Add version info

Co-authored-by: rpkak <rpkak@users.noreply.github.com>
3 years ago
..
config_files RQ v1.0! (#1059) 6 years ago
ssl_config Fix RQScheduler when run with SSL connection (#1383) 4 years ago
Dockerfile Docker (#1471) 4 years ago
__init__.py Success and failure callbacks (#1480) 4 years ago
fixtures.py Success and failure callbacks (#1480) 4 years ago
test.json Allows enqueueing by the cli (#1466) 3 years ago
test_callbacks.py Success and failure callbacks (#1480) 4 years ago
test_cli.py Allows enqueueing by the cli (#1466) 3 years ago
test_commands.py Add a "stopped" JobStatus and the machinery to properly handle it (#1394) 4 years ago
test_connection.py Fixes Job.fetch when return value is unpickleable (#1184) 5 years ago
test_decorator.py Allow retries to be set through decorator (#1319) 4 years ago
test_fixtures.py Multidependencies (#1397) 4 years ago
test_helpers.py Restored the ability to specify connection params in config 10 years ago
test_job.py Success and failure callbacks (#1480) 4 years ago
test_queue.py Use result_ttl for synchronous queues (#1510) 3 years ago
test_registry.py Make unstable tests more stable (#1523) 3 years ago
test_retry.py Make unstable tests more stable (#1523) 3 years ago
test_scheduler.py Make RQScheduler work with a serializer (#1455) 4 years ago
test_sentry.py Replace enum function with internal Enum class (#1459) 4 years ago
test_serializers.py Use pickle.HIGHEST_PROTOCOL by default (#1254) 5 years ago
test_utils.py Extract `Job.get_call_string` logic to `utils.get_call_string` (#1499) 4 years ago
test_worker.py Handle deserializing failures gracefully (#1428) 4 years ago
test_worker_registration.py clean_worker_registry cleans in batches to prevent submitting too muc… (#1390) 4 years ago