chore: Move files from build/common
This commit is contained in:
12
build/frappe-worker/commands/worker.py
Normal file
12
build/frappe-worker/commands/worker.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user