mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-25 11:20:02 +00:00
884a82d814
* add missing __main__ call to commands.py * remove unnecessary imports * fix backup WITH_FILES logic * follow python semantics (?) Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
13 lines
214 B
Python
13 lines
214 B
Python
import os
|
|
from frappe.utils.background_jobs import start_worker
|
|
|
|
|
|
def main():
|
|
queue = os.environ.get("WORKER_TYPE", "default")
|
|
start_worker(queue, False)
|
|
exit(0)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|