Browse Source

#2657: [python] Add task decorator for python function (#9496)

* [python] Add task decorator for python function

* Add decorator `@task`
* Add a tutorial about it
* Change tutorial doc and combine into traditional docs
  * Add sphinx-inline-tab for better view

* revert not need change

* Correct python function indent

* Correct integration test
git-as-svn/v1/dev
Jiajie Zhong 3 years ago committed by GitHub
parent
commit
56ee997888
  1. 2
      commit.ref
  2. 151
      commit.yml

2
commit.ref

@ -1 +1 @@
Subproject commit 59a026d897d5fa3599dd58e932d164370a63b5f4 Subproject commit 1f48601c759df8dae82e966bed1a346416c7449a

151
commit.yml

@ -3,75 +3,102 @@ branches: {
} }
fileChange: fileChange:
/dolphinscheduler-python: /dolphinscheduler-python:
newFile: !uuid '74011cabc2f1f019b5e5951767c53dec3b65e644' newFile: !uuid '8a63e68fe94a53a94843a1fb75070047d2f92fc9'
oldFile: !uuid 'c730d0cc48582cef4afef28fce9d558b9379500b' oldFile: !uuid '74011cabc2f1f019b5e5951767c53dec3b65e644'
/dolphinscheduler-python/pydolphinscheduler: /dolphinscheduler-python/pydolphinscheduler:
newFile: !uuid '82e09c1af6b29a15b60dfe87f4cfed180d5e4481' newFile: !uuid '442349a208ee2000b1143e59dd500b85596fed2a'
oldFile: !uuid '6055c832670528c7d0cd9aa4d59cf3f76021d38e' oldFile: !uuid '82e09c1af6b29a15b60dfe87f4cfed180d5e4481'
/dolphinscheduler-python/pydolphinscheduler/UPDATING.md:
newFile: !uuid 'd772c6f8f6e98ac450d0e8d674362a8352b508b9'
oldFile: !uuid '430e4b626f19416d7cc5382a363e2e0a23d50d65'
/dolphinscheduler-python/pydolphinscheduler/docs: /dolphinscheduler-python/pydolphinscheduler/docs:
newFile: !uuid '88751b3f1d27ea9a0add476c05f187acf4004f5a' newFile: !uuid '7a4de5e6cfecc093e905c8ca401d0c02488aa541'
oldFile: !uuid '517b9c2bc292c878336ba29d7f6cf3869aa055fa' oldFile: !uuid '88751b3f1d27ea9a0add476c05f187acf4004f5a'
/dolphinscheduler-python/pydolphinscheduler/docs/source: /dolphinscheduler-python/pydolphinscheduler/docs/source:
newFile: !uuid '913ec22b2e0cf020754ea39a2425c09964d0c496' newFile: !uuid 'be3c811aaa54daf876e5d1cb344d3fd56ea42578'
oldFile: !uuid 'a88614b0bcf03c6aed2f68c8eaa0d10ffde4e574' oldFile: !uuid '913ec22b2e0cf020754ea39a2425c09964d0c496'
/dolphinscheduler-python/pydolphinscheduler/docs/source/config.rst: /dolphinscheduler-python/pydolphinscheduler/docs/source/conf.py:
newFile: !uuid '66c7f08525f297bc64ad7abd914b9ecc05fb567d' newFile: !uuid 'efede5c2995e38ba1973dd5b03bad00615000f45'
oldFile: !uuid 'bfba2ecfde485584bf8caa44aca6b615e7d2ac92' oldFile: !uuid 'e22b3bb1b84da40200125cc4c2d29863e0ccc1dc'
/dolphinscheduler-python/pydolphinscheduler/docs/source/howto:
newFile: !uuid '05c32d6773cc0c5ca0043572c91ec2ad4e030d67'
oldFile: !uuid 'd50879ad4a99567ff652253b65bb761104cbfdef'
/dolphinscheduler-python/pydolphinscheduler/docs/source/howto/index.rst:
newFile: !uuid 'a0b3c29c0ca996b272d7c708e26d84aac3c39e08'
oldFile: !uuid 'e83b1631cf9e24953d46a7e53209f9b21c8f970f'
/dolphinscheduler-python/pydolphinscheduler/docs/source/start.rst:
newFile: !uuid '6663c085e9c7979b2835d2caef6b62130ca3ba60'
oldFile: !uuid 'e411d7bf72b643ffe368deb160cece81bb4f7a96'
/dolphinscheduler-python/pydolphinscheduler/docs/source/tasks:
newFile: !uuid 'd31c908d5c371fdeac14806cfbc44e5d399dbbaf'
oldFile: !uuid 'fd471e65da6f57d5f369c5c14fbeb44da3fc817c'
/dolphinscheduler-python/pydolphinscheduler/docs/source/tasks/func_wrap.rst:
newFile: !uuid '5f41b80cfdabf17c1f8bcf5445d73654d93429ac'
oldFile: null
/dolphinscheduler-python/pydolphinscheduler/docs/source/tasks/index.rst:
newFile: !uuid 'd6bbb960c1ff0db783096e497e42406411c301d3'
oldFile: !uuid '42dcdf9c8c5ece81286d93c4194df1b065088fcc'
/dolphinscheduler-python/pydolphinscheduler/docs/source/tutorial.rst:
newFile: !uuid '6366c803bb5cc0536c55a13419d9a93ae4c31a19'
oldFile: !uuid 'e0f22fb81654ee7782dacfb57c17ee896f60be5f'
/dolphinscheduler-python/pydolphinscheduler/setup.py:
newFile: !uuid '62f20a54ce2937bf12ceb10892a902dd38837f17'
oldFile: !uuid '9632bb1fd9f09de1a93a93d42822311ed1291a91'
/dolphinscheduler-python/pydolphinscheduler/src: /dolphinscheduler-python/pydolphinscheduler/src:
newFile: !uuid 'affb8f295eed561c55524f923ccf23c13dc702bc' newFile: !uuid '56b18a590dd399eb8d5426264fae00c202691a98'
oldFile: !uuid 'ec1cf7af818106b9821630d1af31635b6997e301' oldFile: !uuid 'affb8f295eed561c55524f923ccf23c13dc702bc'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler: /dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler:
newFile: !uuid '74730eaaf82cd0e34abe55b4ec461aa30be05b76' newFile: !uuid '30d26e6ad77359501b268730cebfd90645c6c11b'
oldFile: !uuid '289ca9eba0173ae53dc440e006be86f8271e8528' oldFile: !uuid '74730eaaf82cd0e34abe55b4ec461aa30be05b76'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/cli:
newFile: !uuid '0b4354c7fc7fac21b9a755c9ef7f9d241d4eb528'
oldFile: !uuid 'feaaef6343cc5703676d86b610c550b9bc74cdb4'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/cli/commands.py:
newFile: !uuid 'e2ca86b573c06b527f4a239337e7eb517e57e584'
oldFile: !uuid '5628799bcf8cac4d949ce12e2d3044dbfb7cd776'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/core: /dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/core:
newFile: !uuid '7a80621daabbea9a92e2d985a67551ae9478224d' newFile: !uuid 'd8529ec83f63c9052d318e82ec9bde65fb7b9140'
oldFile: !uuid '10d84b7b9feefd78eb2d5b9f7d6bdbf292377306' oldFile: !uuid '7a80621daabbea9a92e2d985a67551ae9478224d'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/core/configuration.py: /dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/core/__init__.py:
newFile: !uuid '14f2fe9fce85d38f8a80ea086e78368eb54689e6' newFile: !uuid '7497d1f2895841db93043ab825017afb88042b3a'
oldFile: !uuid '8b5665d304c2ada2b6ac68f7abae7a03d8d13902' oldFile: !uuid '31dc9446d8f86d905f6fbba3ba7d394c7e1bd6c5'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/utils: /dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/examples:
newFile: !uuid '58df2f33def13de0484f3ecaa7fc8467449b1959' newFile: !uuid 'efcaee10504c1508350a99658f7f9eb041bf3471'
oldFile: !uuid 'e01a2ecdb46bf63d5a13cad57ef2548c26547d4b' oldFile: !uuid 'f04849d071e46d0b903c892d206c155ea59d9690'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/utils/yaml_parser.py: /dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/examples/tutorial_decorator.py:
newFile: !uuid '46ee08cec8417b64e93ff899d2da0fbec76e7db3' newFile: !uuid '986c1bbb6e07068a125f390e40f4d72b5d8bfcd8'
oldFile: !uuid '5cea0190d860c10e544b99576fe9d2397a56f24f' oldFile: null
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/tasks:
newFile: !uuid '5dd20f40b2663fac4f04c08b35a0fa5bb473cb65'
oldFile: !uuid '67edbac68c657cbd618393e4fe7ac9d577461396'
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/tasks/func_wrap.py:
newFile: !uuid 'c0b73a1fc2eda531ccf7457bf525e8ea9cac4b78'
oldFile: null
/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/tasks/python.py:
newFile: !uuid '52903d48d93b52a4a041a7d721e7d7770e0a08b1'
oldFile: !uuid '79504808c893c374ddc7bef3ad2b52f5959d8d02'
/dolphinscheduler-python/pydolphinscheduler/tests: /dolphinscheduler-python/pydolphinscheduler/tests:
newFile: !uuid 'd9d2935cb51ad4431c1d5b6bdc1d8e5838b04907' newFile: !uuid '9e5991dcd3e7792d7b16444aaad396b203a8443f'
oldFile: !uuid '8a97220695e390e5255715d894adaf9aa4f2884b' oldFile: !uuid 'd9d2935cb51ad4431c1d5b6bdc1d8e5838b04907'
/dolphinscheduler-python/pydolphinscheduler/tests/cli: /dolphinscheduler-python/pydolphinscheduler/tests/example:
newFile: !uuid 'a6faf0496516231df6258085407862cb0b8f35ad' newFile: !uuid 'be5a49df975e849b44e9a9662fb7b09776a0edc7'
oldFile: !uuid '5ad2afe198859d449aad378db4e7a61f3ac0814f' oldFile: !uuid '8c89ab82079e524fa40924f232af6b73bb7e47f4'
/dolphinscheduler-python/pydolphinscheduler/tests/cli/test_config.py: /dolphinscheduler-python/pydolphinscheduler/tests/example/test_example.py:
newFile: !uuid 'd913277b2e4921cc222ad7f7fb1c065b07d97892' newFile: !uuid '70f367767cd4bd0a23820014ee3cd21a7af54c1f'
oldFile: !uuid 'f7c489a96834b83c8650aee77b5e6c7ffb6b20bf' oldFile: !uuid '5bf897f56004eeac702523e141c5e949c96b0fd2'
/dolphinscheduler-python/pydolphinscheduler/tests/core: /dolphinscheduler-python/pydolphinscheduler/tests/integration:
newFile: !uuid '4b20eca8ef5559baa7237d1f231eb76772a92446' newFile: !uuid '6ee862a158d251d63e406309e919c92c5d72f632'
oldFile: !uuid 'bdada18ec7c6099246ba1ae40b008768f3cc55b3' oldFile: !uuid '3b64e4c7a1d7a4e0a96c19bc692754b3786af833'
/dolphinscheduler-python/pydolphinscheduler/tests/core/test_configuration.py: /dolphinscheduler-python/pydolphinscheduler/tests/integration/test_submit_examples.py:
newFile: !uuid '394fd33d9243e69cff6205125f307801e8a57e90' newFile: !uuid '218fa4a55c2a3517605148c1e3e776ea9e1c26bd'
oldFile: !uuid '45d4477bcdb553ff816078f6fcf7b7d7308338d8' oldFile: !uuid '85e5e23e318dc503c3bdca2b8071e75bf6e9df7a'
/dolphinscheduler-python/pydolphinscheduler/tests/tasks:
newFile: !uuid '31b90882575c0570a7557a0bad9f87c1b1feb6ca'
oldFile: !uuid '98229b3d6aa325ddc0d6fd11dbacdde154829cd7'
/dolphinscheduler-python/pydolphinscheduler/tests/tasks/test_func_wrap.py:
newFile: !uuid '628b6e7f869b5ad398a4d7fec4c872f3bb630cca'
oldFile: null
/dolphinscheduler-python/pydolphinscheduler/tests/tasks/test_python.py:
newFile: !uuid '1cdd85d2cbfab4cdcc09ea4dee8e354929d57d05'
oldFile: !uuid 'dbcd2986fb1b3432f9ab2ae6735df0547eec3e9b'
/dolphinscheduler-python/pydolphinscheduler/tests/testing: /dolphinscheduler-python/pydolphinscheduler/tests/testing:
newFile: !uuid '51db189f5d046c499f3fb23336da61e0d809ad5b' newFile: !uuid 'fbfb4fe2a8850462705bf298f6607cd1810cb2bb'
oldFile: !uuid '5e26aaf16bd723d3b6b23a3b3ac7f7777bbc7674' oldFile: !uuid '51db189f5d046c499f3fb23336da61e0d809ad5b'
/dolphinscheduler-python/pydolphinscheduler/tests/testing/constants.py: /dolphinscheduler-python/pydolphinscheduler/tests/testing/decorator.py:
newFile: !uuid 'ed2ee37de76eb99c3cb6e38818f86c9c88e4758e' newFile: !uuid '78078ee86305c55b9fad054a2978a6652dab2f43'
oldFile: !uuid '63f0fdd8227944b7f3dc2945907c2d1f4ed67e43' oldFile: null
/dolphinscheduler-python/pydolphinscheduler/tests/utils: gitCommitId: !uuid '1f48601c759df8dae82e966bed1a346416c7449a'
newFile: !uuid '405449dfdca102b1c5d9d16cf5255fec4e556bbb'
oldFile: !uuid '8a2e06770f6a7185b990ffb5c89e8f807ad0afd3'
/dolphinscheduler-python/pydolphinscheduler/tests/utils/test_yaml_parser.py:
newFile: !uuid 'aa6d9eee6c54317ea8ad51d0869975079aa6ac03'
oldFile: !uuid 'ae49f2b7685f44160e30cab21913df4f134b5de7'
gitCommitId: !uuid '59a026d897d5fa3599dd58e932d164370a63b5f4'
renames: { renames: {
} }
revisionId: 2656 revisionId: 2657

Loading…
Cancel
Save